Laravel provide CSRF for secure request with CSRF token. CSRF is default enable to all post type routes. but if you want to disable for specific route then you can do it easily.
Sometime we need to ignore some route for csrf middleware in our laravel application.Solution of how to disable csrf for some routes then solve by adding routes in VerifyCsrfToken middleware.
VerifyCsrfToken middleware will have $except array variable there you can easily add your url and ignore from csrf token verification.
- Clone the repo.
- Run 'composer install'
- Run 'cp .env.example .env'
- Run 'php artisan migrate'
- Run 'php artisan serve'
♥ Thank You ♥