jekinney's avatar

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.

0 likes
0 replies

Please or to participate in this conversation.