Metronic Laravel Migrations Error
Hi Frinds, I try to install the new Metronic v8.2.6 for Laravel,
first all looks god, but the Datatable migration failed!
php artisan migrate:fresh
Running migrations
Create permission Tables
Error:
Access to undeclared static property Spatie\Permission\PermissionRegistrar::$pivotPermission
Please look for this bug or can you give me a Tip to fix the Problem?
Thanks a lot, Uwe
Replies (1)
Deleted comment
Hi
There's an update from the Laravel Permission library. To resolve the issue, please follow these steps:
Update the package:
composer update Remove the old migration file:
Delete the file named *_create_permission_tables.php.
Publish the updated migration file:
Run the command:
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" Now, try running the migration again with:
php artisan migrate These steps should resolve the error you're encountering.
Best regards,