How to disable CSRF Token in Laravel and why we have to disable it?

You can Disable CSRF on few routes by editing. App\Http\Middleware\VerifyCsrfToken and add your own routes name in protected Disable for all routes protected $except = [ '*' , ]; Disable for some routes protected $except = [ 'mobile/*' , 'news/articles' , ];