Closed zenepay closed 5 months ago
Call to undefined method App\Models\User::createToken() Try to create the Token but it seems this function is not existed in User model. Do you have to entend any traits?
When creating token from Token resource
3.2
8.2
11
Linux
No response
I got it . I need to put HasApiToken to User Model class User extends Authenticatable implements FilamentUser { use HasApiTokens;
If this should be in the document, it would be good.
What happened?
Call to undefined method App\Models\User::createToken() Try to create the Token but it seems this function is not existed in User model. Do you have to entend any traits?
How to reproduce the bug
When creating token from Token resource
Package Version
3.2
PHP Version
8.2
Laravel Version
11
Which operating systems does with happen with?
Linux
Notes
No response