Correctly set headers for Laravel 5 CSRF Token
问题 Alright, been searching this one for hours and just can't find the start of a solution. I am using an angularJS frontend with a laravel backend. Restangular is my communcation service. My POST are fine, because I can include the _token in the data and it will work. But for Restangular to call a destroy function it looks like... Restangular.all('auth/logout').remove(); //maps to AuthController@Destroy All fine, but then you will get a TOKENMISMATCH Exception, which is a good security messure