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
Yes, could be a cache issue, or perhaps something incomplete with the UUID configuration that's causing -> getKeyName() to not return the correct field name.
Description
Im using this seeder to create an admin user and assing all roles in database
The problem its when execute $role->syncPermissions($permissions); i get this error
I follow the error and come to
So i encountered with this line
return $this->getPermissionClass()::findById($permissions, $this->getDefaultGuardName());
So i try to get the Permission just using
Permission::findById('488a71c3-d01b-45fc-8fee-03422322c4ec', 'web')
And there is not problem. So what its wrong?
Steps To Reproduce
...
Example Application
No response
Version of spatie/laravel-permission package:
^6.9
Version of laravel/framework package:
^11.9
PHP version:
^8.2
Database engine and version:
No response
OS: Windows/Mac/Linux version:
No response
The text was updated successfully, but these errors were encountered: