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