In the boot method of app\Providers\AuthServiceProvider.php
Auth::provider('wpdriver', function ($app, array $config) {
return new WPUserProvider($app['hash'], $config['model']);
});
In config\auth.php
modify providers with
'wpusers' => [
'driver' => 'wpdriver',
'model' => App\User::class,
],
and guards with
'wpguard' => [
'driver' => 'session',
'provider' => 'wpusers',
],
and then set default guard to wpguard