How to fix in laravel 5.2 zizaco entrust:migration class name validation?

前端 未结 4 563
北海茫月
北海茫月 2021-02-05 20:07

I have followed zizac/entrust installation tutorial from GitHub Link and faced with error:

Class name must be a valid object or a string in var/www/htm

4条回答
  •  死守一世寂寞
    2021-02-05 20:43

    In vendor/zizaco/entrust/src/commands/MigrationCommand.php on line 86.

    Laravel 5.1.* Add Line

    $usersTable  = Config::get('auth.table');
    $userModel   = Config::get('auth.model');
    

    Laravel 5.2.* Add Line

    $usersTable  = Config::get('auth.providers.users.table');
    $userModel   = Config::get('auth.providers.users.model');
    

提交回复
热议问题