vendredi 24 février 2017

Laravel 5.4 post request token mismatch

I am learning to create API in Laravel. I created a CRUD controller, and I have an empty store function:

public function store(Request $request)
{
    dd('store');
}

When I try to make a post request with Postman I get the token mismatch exception:

"Illuminate\Session\TokenMismatchException">TokenMismatchException in
   "/Users/andrei/Desktop/api.dev/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php line 68">VerifyCsrfToken.php line 68

I have no form for the post method to put . How can this be solved? Thank you!



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2lj79Le
via IFTTT

Aucun commentaire:

Enregistrer un commentaire