You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is when I add put or post route in order to update record it retruns unauthanticated error. Only get routes are working but when I check routes with php artisan route:listcommand I can see routes in correct way. Where is the problem? Why that new api guard doesn't work like predefined api:auth guard? Thank you.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I have a personal access client to produce access tokens for my manufacturers and customers tables. And added provider and api-guarda as follows;
Providers in auth/config
Guards:
And added
hasApiTokenclass
into related models. I added that client's routes as follows:The problem is when I add put or post route in order to update record it retruns unauthanticated error. Only get routes are working but when I check routes with php artisan route:listcommand I can see routes in correct way. Where is the problem? Why that new api guard doesn't work like predefined api:auth guard? Thank you.
...
Beta Was this translation helpful? Give feedback.
All reactions