Laravel - Security


How can we avoid Cross-site Request Forgery attacks?

Add to our forms:

<input type="hidden" name="_token" value="{{ Session::token() }}"/>

What is the name of the middleware that implement protection against CSRF attacks?

It is the web middleware.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License