function csrf() { $csrfProtector = new CSRFProtector(); return sysview('csrf', array('token' => $csrfProtector->createCsrf())); }
protected function isCsrfViolation(Guard $guard, $folder) { $csrfProtection = new CSRFProtector(); return $guard->hasCsrfProtection($folder) && !$csrfProtection->validCSRF(); }