Disabling verify csrf token middleware for specific route

It needs to be disabled in app\Http\Middleware\VerifyCsrfToken.php like following snippet

protected $except = [
   //
   '/admin/gift_photos/upload'
];


Another thing, to exclude all routes under main route ex. users

protected $except = ['users/*'];

Related Posts