MigrationCommand.php文件的URL为:Link 输出结果:在var/www/html/laravel_test/vendor/zizaco/entrust/src/commands/MigrationCommand.php的第86行,类名必须是一个有效的对象或字符串。
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 相同的选项。如何修复?
code
config/auth.phpcode
code
/* * ENTRUST:MIGRATION 的配置 * * */'table' => 'users', 'model' => App\Models\Usuario::class
code
- Cocuba