There are no commands in the trust namespace

I use an assignment for roles and I need to complete the migration, but when I want to complete php artisan entrust:migration, I get this error

[Symfony \ Component \ Console \ Exception \ CommandNotFoundException] There are no commands in the trust namespace.

"It will generate the _entrust_setup_tables.php migration."

What can I do? Thank!

+4
source share
3 answers

First clear the cached configuration files and restart php artisan vendor:publish

Then run php artisan entrust:migration

+3
source

it may be a little late, but for those who encounter this problem when using the errand

just run php artisan config:clear

+2

Make sure you add both the provider and the alias to the config / app.php file and save it

Add to the array of providers:

Zizaco\Entrust\EntrustServiceProvider::class,

Add to aliases array:

'Entrust'   => Zizaco\Entrust\EntrustFacade::class,

And after that try passing php artisan: redirect again

0
source

Source: https://habr.com/ru/post/1648379/


All Articles