How to add the CSRF (Cross-site request forgery) token in Laravel?
October 26, 2018
While there are a few ways to do this, the easiest way for a normal <form>
is to use @csrf
(inside the form).
BTW, make sure you have the VerifyCsrfToken middleware enabled to make use of the CSRF protection!