Thursday, March 16, 2017

How to get the csrf token "outside" laravel view?

i have a cordova app connected to a laravel api. I need to make a post from the mobile app to that laravel, but i need the csrf token. I cannot do the because the view i´m using in the mobile is not provided by laravel so no blade or laravel helpers. I tried doing a previous ajax call only to get the token, but i don´t know if this is the best way to do it. Thank you!



via Alwitheflow

Advertisement