Althinect/filament-spatie-roles-permissions

Command not found when attempting to generate policies

Closed this issue · 1 comments

Hi, I have just installed your library, and when I attempt to run the policies command

php artisan permissions:sync -C|--policies

I get the following error --policies: command not found

Thanks

I guess you are new to Laravel.
The '|' is just to symbolise to use either -C or --clean which does the same
php artisan permissions:sync -C and php artisan permissions:sync --clean are the same

If you want to sync permissions, generate Policies php artisan permissions:sync -CP or php artisan permissions:sync --clean --policies