Closed chrismeats closed 1 year ago
same issue here...
Can you verify Craftable was installed with package spatie/laravel-permission
version 5.9.1 and not 5.9.0? It might be related to this:
https://github.com/spatie/laravel-permission/releases/tag/5.9.1
I do not see where spatie/laravel-permission
was installed at all!
Was there another command I was supposed to run?
I just tried installing that using composer require spatie/laravel-permission
I confirmed it installed using v 5.9.1 but still get the same error when running craftable install --no-sail
It seems there was still no migration or anything created for a permissions table.
I followed the spatie permissions setup instructions and publish the migrations using
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
I then ran the permissions migration using
php artisan migrate --path=database/migrations/2023_02_08_153701_create_permission_tables.php
After that I was able to get craftable installed.
Doesnt seems like all these extra steps should be necessary so Im not sure what I did during the setup but this got it to work.
I also realized I had an old version of node, not sure if that caused some of these issues.
No no, no extra steps are required. Craftabkle actually requires spatie/laravel-permission
so it should have been installed by default. And it most likely was installed (although you're saying the opposite), look at your ouput, there is a line:
spatie/laravel-permission ..................................................................................................... DONE
But maybe they've changed something, the way it should be installed. We'll have to look into it more deeply.
Yep, they've changed the installation: https://github.com/spatie/laravel-permission/pull/2301
Okay, PR with fix on the way: https://github.com/BRACKETS-by-TRIAD/craftable/pull/420
will be merged and released today
Fixed. Can you confirm?
I tried reinstalling but still not working... still error exist
I am attempting to install craftable using --no-sail and am getting this error message.
It seems that there is no migration for creating the permissions table? Below is the output of
craftable install --no-sail