laravel-5 - "entrust"命名空间中没有定义命令

我正在为角色使用 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/

相关文章:

shortcode - 如何获取联系表 7 的列表

grails - 如何在grails中自定义spring security插件登录页面

asp.net-mvc - EF 核心和 Azure

google-chrome-extension - 卸载 Chrome 扩展时打开新窗口

r - 添加一列,其中包含具有最大频率的对象的值

solr - Sitecore 和 SolrCloud 开启重建

gcc - ARM ;内联汇编;使用暂存器;

amazon-web-services - CloudFormation 模板中元数据部分的用途是什

xslt-2.0 - XSL :FO avoid Space between Table Cells

angularjs - 工厂方法总是在 AngularJs 中返回 undefined