[HOOLOO] zizaco/entrust 5.2.x-dev Class name must be a valid object or a string,hooloozizaco_PHP教程

WBOY
Release: 2016-07-12 08:51:23
Original
1197 people have browsed it

[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';
Copy after login

改为

get'auth.table';
get'auth.model';
Copy after login

 

 

即可。


此方法仅对 laravle 5.1 。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1131140.htmlTechArticle[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的时候执行...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!