I want to use UUID in Laravel passport instead of the default id in my laravel projet. I changed all the user_id and client_id columns to uuid in the migrations and i add Passport::ignoreMigrations() in the register method in AppServiceProvider.
When i tested in postman by creating a new raw in users table, i get in my response the token but when i use this token in a secured route i always get response status:"401 Unauthorized" and in the response body "message:Unauthenticated."
Can anyone help please i'm completely blocked
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire