Monday, May 22, 2017

Laravel enable csrf protection on api middleware

I'm working 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 use csrf with api middleware?



via kdyz

Advertisement