-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] SANCTUM SUPPORT #2991
Comments
We can duplicate the class in this package and add tests, but we will have to keep track of the changes in the parent class and ensure it's not used for type check. Maybe a real Alternatively, I'd like to use move the |
will this update #2580, like override also the extended SpatieRole? If so this update would open up a lot package to be usable that using only Eloquent <?php
namespace App\Models;
use Spatie\Permission\Models\Role as SpatieRole;
class Role extends SpatieRole
{
use DocumentModel
// You might set a public property like guard_name or connection, or override other Eloquent Model methods/properties
} |
I read this Fix #2120 so it does fix issue with extending |
For now I check all the issue and found a way to add sanctum support but I think instead of manual, the library could make this integrated with test like the cache and queue by @GromNaN made to support. This has status backlog in Jira, but I think with the quick support of cache in 4.3 version it should easily added and add also in docs. Thanks
Copy original PersonalAccessToken
cp ./vendor/laravel/sanctum/src/PersonalAccessToken.php ./app/Models/PersonalAccessToken.php
Then in AppServiceProvider
All references
#2444
#2445
https://jira.mongodb.org/browse/PHPORM-88
The text was updated successfully, but these errors were encountered: