-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Access to undeclared static property Spatie\Permission\PermissionRegistrar::$pivotPermission #2577
Comments
If you look at your migration, you'll see that you're still using the old migration from before beginning your upgrade. |
Sorry for the confusion. I did not upgrade this package because I just discovered it recently. What I did was a fresh install for a |
I'm puzzled about how you would get an old migration file on a new app. How exactly did you do the install? Or maybe did you install some other bundle by some other set of packages that maybe included an old version of this package? |
ie: I just installed a new Laravel app: laravel new permtest
cd permtest
php artisan migrate migration successful then install this package to the app: composer require spatie/laravel-permission:^6.0
php artisan vendor:publish // choose Spatie Laravel Permission
php artisan migrate migration successful No errors. And when I look at line 60 of my migration file it's completely different from the one you quoted a segment of above. |
Yeap, it's rather confusing though. This app I am referring to uses Laravel Jetstream with teams support, so maybe like I said, I may have messed up something somewhere while settling it up. The issue appeared after upgrading PHP in order to satisfy another package requiring 8.1 or above. Sorry for the bother. Appreciate your time and effort. |
Probably best to:
|
Describe the bug
Access to undeclared static property Spatie\Permission\PermissionRegistrar::$pivotPermission
blames
defined in:
Versions
*** Environment ***
*** Database version: ***
MySQL 8
The text was updated successfully, but these errors were encountered: