我正在为角色使用 entrust,我必须进行迁移,但是当我想执行 php artisan entrust:migration
时,我得到了这个错误
[Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "entrust" namespace.
“它将生成 _entrust_setup_tables.php 迁移。”
我能做什么?谢谢!
最佳答案
首先清除缓存的配置文件并重新运行 php artisan vendor:publish
然后运行php artisan entrust:migration
关于laravel-5 - "entrust"命名空间中没有定义命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38460164/