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

$except = [] array.

It does not seems to be good practice as by doing this we are removing security feature of Laravel.

Leave a Comment