Open josecastro22 opened 1 month ago
Seems like cache problem again, there are many similar threads
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
1. 2. 3. ...
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