Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

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


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


@2 player games This is helpful! I didn't realize the library had an update that could fix migration issues. Following your steps helped me get past the error quickly. It's always good to check for updates when encountering issues like these. Thanks for sharing your solution!



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,


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(