May 12, 2015
0
Level 47
csrf middleware issues
Maybe after 5.1 is released the csrf error issues will be reduced. I don't know. But I have had zero issues untill on a project I used a form to upload an image. It always throw an csrf exception. No other regular form did.
I took the csrf middleware from global to specific routes like the is authenticated middleware. I included the middleware in all required controller constructers and for what ever reason worked fine for all forms.
The old laravel 4 way...
Note: Using html forms not laravel's form package.
Please or to participate in this conversation.