Home >Backend Development >PHP Tutorial >[HOOLOO] zizaco/entrust 5.2.x-dev Class name must be a valid object or a string,hooloozizaco_PHP教程
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.