Closed vincenzotecnology closed 1 year ago
What's the use case for requesting a sanctum token for an admin user?
Hello how are you?
We can use the connection if, for example, we have a control app and we need a connection api. I've been developing a lot of systems that admins would like to have access to in an app and control from it.
Greetings from Brazil
Samuel Vincenzo
Good afternoon everyone; The system presents an error when api sanctum token is requested for administrative users, as shown in the image below:
The resolution is to add the HasApiToken in the Model FilamentUser. As the default installation of Laravel 9x Sanctum is installed I will upload a PR correcting it and adding it to the Model.