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 {{csrf.. }}. How can this be solved? Thank you!