Zizaco / entrust

Role-based Permissions for Laravel 5
MIT License
6.05k stars 1.29k forks source link

Call to undefined method App\Models\User::getKeyName() #890

Closed Tarasovych closed 6 years ago

Tarasovych commented 6 years ago

Hello! After php artisan entrust:migration I got Method Zizaco\Entrust\MigrationCommand::handle() does not exist. I fixed it as it was said here. After that I successfully had done php artisan entrust:migration. Than I tried php artisan entrust:migration one more time and got new error:

In MigrationCommand.php line 86:
  Call to undefined method App\Models\User::getKeyName()

My auth.php is:

'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\Models\User::class,
            'table' => 'users',
        ],
    ],

User.php exists in \\app\\models What to do?