Update PdAuthServiceProvider.php
This commit is contained in:
parent
ae059d43d7
commit
8742be99ce
|
@ -33,19 +33,11 @@ class PdAuthServiceProvider extends ServiceProvider
|
|||
return null;
|
||||
});
|
||||
|
||||
if (!isset($config['guards']['auth'])) {
|
||||
if (!isset($config['guards'][$key])) {
|
||||
config(['auth.guards.' . $key => ['driver' => $key]]);
|
||||
$this->app['auth']->shouldUse('auth');
|
||||
}
|
||||
}
|
||||
|
||||
// $config = $this->app['config']['auth'];
|
||||
//
|
||||
// if (!isset($config['guards']['auth'])) {
|
||||
// config(['auth.guards.auth' => ['driver' => 'auth']]);
|
||||
// $this->app['auth']->shouldUse('auth');
|
||||
// }
|
||||
|
||||
$this->setupRouter();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user