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
WBOYOriginal
2016-07-12 08:51:231300browse

[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';

changed to

<em>get</em>'auth.table';
<em>get</em>'auth.model';

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...
Statement:
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