Sunday, May 21, 2017

Laravel enable csrf protection on api middleware

I'm on Laravel 5.4 and my routes are in the api middleware

I see that I need to transfer my routes to the web middleware, but I need them to be on the api middleware since I'm creating a restful api, any suggestions on how I could force csrf protection?



via kdyz

Advertisement