When I try to use these requests:
POST /api/products
or
PUT /api/products/:id
I am getting the following error:
Symfony\Component\Routing\Exception\RouteNotFoundException: Route [login] not defined. in file /Applications/MAMP/htdocs/laravel-sanctum-api/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php on line 429
When I try to use these requests:
POST /api/products
orPUT /api/products/:id
I am getting the following error:Symfony\Component\Routing\Exception\RouteNotFoundException: Route [login] not defined. in file /Applications/MAMP/htdocs/laravel-sanctum-api/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php on line 429
I am using the token which I have got via login. For example in header
token 2|LIpDVDG2Ry9rJMlevY6wAsQYiWxl1Tm9MdSc****
Please help.