【发布时间】:2016-04-04 10:24:35
【问题描述】:
我遵循了来自 GitHub Link 的 zizac/entrust 安装教程,但遇到了错误:
类名必须是有效的对象或字符串 var/www/html/laravel_test/vendor/zizaco/entrust/src/commands/MigrationCommand.php 在第 86 行
MigrationCommand.php 文件地址:Link
输出:
php artisan entrust:migration
Tables: roles, role_user, permissions, permission_role
A migration that creates 'roles', 'role_user', 'permissions', 'permission_role' tables will be created in database/migrations directory
Proceed with the migration creation? [Yes|no] (yes/no) [yes]: yes
Creating migration...
PHP Fatal error: Class name must be a valid object or a string in /var/www/html/laravel_test/vendor/zizaco/entrust/src/commands/MigrationCommand.php on line 86
命令:php artisan vendor:publish 成功。
文件:config/entrust.php 存在。
我没有更改 config/auth.php 文件的任何选项,与 - auth.php 相同。如何解决?
【问题讨论】:
标签: php laravel laravel-5 laravel-artisan entrust