Bez popisu

VerifyCsrfToken.php 456B

12345678910111213141516171819202122232425
  1. <?php namespace App\Http\Middleware;
  2. use Closure;
  3. use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
  4. class VerifyCsrfToken extends BaseVerifier {
  5. /**
  6. * Handle an incoming request.
  7. *
  8. * @param \Illuminate\Http\Request $request
  9. * @param \Closure $next
  10. * @return mixed
  11. */
  12. public function handle($request, Closure $next)
  13. {
  14. return parent::handle($request, $next);
  15. }
  16. protected $except = [
  17. 'api/*'
  18. ];
  19. }