This error comes up when i run php artisan migrate:fresh --seed
Access to undeclared static property Spatie\Permission\PermissionRegistrar::$pivotPermission at database\migrations\2023_06_11_075700_create_permission_tables.php:54
Hi Yoga Septiandi
There's an update from the Laravel Permission library. To resolve the issue, please follow these steps as workaround:
Update the package:
composer update
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
php artisan migrate