[HOOLOO] zizaco/entrust 5.2.x-dev Class name must be a valid object or a string,hooloozizaco
程序员文章站
2024-01-02 10:26:10
...
[HOOLOO] zizaco/entrust 5.2.x-dev Class name must be a valid object or a string,hooloozizaco
在使用laravel 5.1权限管理,使用 安装 zizaco/entrust 5.2.x-dev的时候执行 php artisan entrust:migration的时候报以下错误:
[Symfony\Component\Debug\Exception\FatalErrorException]
Class name must be a valid object or a string
解决办法:
\vendor\zizaco\entrust\src\commands\MigrationCommand.php文件中第84行。
将
get'auth.providers.users.table'; get'auth.providers.users.model';
改为
get'auth.table'; get'auth.model';
即可。
此方法仅对 laravle 5.1 。
推荐阅读
-
[HOOLOO] zizaco/entrust 5.2.x-dev Class name must be a valid object or a string,hooloozizaco
-
[HOOLOO] zizaco/entrust 5.2.x-dev Class name must be a valid object or a string
-
[HOOLOO] zizaco/entrust 5.2.x-dev Class name must be a valid object or a string,hooloozizaco
-
[HOOLOO] zizaco/entrust 5.2.x-dev Class name must be a valid object or a string
-
[HOOLOO] zizaco/entrust 5.2.x-dev Class name must be a valid object or a string,hooloozizaco_PHP教程
-
[HOOLOO] zizaco/entrust 5.2.x-dev Class name must be a valid object or a string,hooloozizaco_PHP教程