Home > Backend Development > PHP Tutorial > [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教程

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

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

is using laravel 5.1 permission management, use to install zizaco/entrust When executing php artisan entrust:migration in 5.2.x-dev, the following error is reported:


[SymfonyComponentDebugExceptionFatalErrorException]
Class name must be a valid object or a string


Solution:

Line 84 in vendorzizacoentrustsrccommandsMigrationCommand.php file.

will

<em>get</em>'auth.providers.users.table';
<em>get</em>'auth.providers.users.model';
Copy after login

changed to

<em>get</em>'auth.table';
<em>get</em>'auth.model';
Copy after login

That’s it.


This method is only available for 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 in Use laravel 5.1 permission management and execute it when installing 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