How to turn off crsf protection for specific route in laravel?



How to turn off crsf protection for specific route in laravel?..

Answer / Avishant Dubey

To turn off CSRF protection for a specific route in Laravel, you can use the `csrf()` method inside your route definition and call `$this->withoutCSRFProtection()` on the `Route` instance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

How to stop valet?

1 Answers  


How to get/set configuration values in laravel?

1 Answers  


What is controller in laravel?

1 Answers  


What is factory in laravel?

1 Answers  


Tell me what is the purpose of using dd() function iin laravel?

1 Answers  


What is Terminable Middleware ?

2 Answers  


How to get current route name?

1 Answers  


What is laravel trait?

1 Answers  


What is the use of blade?

1 Answers  


What is ajax in laravel?

1 Answers  


List available types of relationships in laravel eloquent.

1 Answers  


How can you exclude uris from csrf protection in laravel?

1 Answers  


Categories