Can you exclude uris from csrf protection in laravel? Explain



Can you exclude uris from csrf protection in laravel? Explain..

Answer / Shruti Agarwal

To exclude URIs from CSRF protection in Laravel, use the $middleware property of the route and add the IlluminateFoundationHttpMiddlewareVerifyCsrfToken middleware. Then, set the '$middleware' array to an empty array for the specific routes you want to exclude.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

What do you understand by database migrations in laravel? How can we use it?

1 Answers  


What is composer tool?

1 Answers  


What are the advantages of using laravel?

1 Answers  


Why laravel over other php frameworks?

1 Answers  


How to get current route name?

1 Answers  


Which class is used to handle exceptions?

1 Answers  


Explain the bindings and singletons properties?

1 Answers  


What is use of laravel?

1 Answers  


Is laravel spark free?

1 Answers  


How to start valet?

1 Answers  


What is backend framework?

1 Answers  


How to start laravel local development server.

1 Answers  


Categories