Update PdAuthServiceProvider.php

This commit is contained in:
候学杰 2019-02-11 15:27:20 +08:00
parent ae059d43d7
commit 8742be99ce

View File

@ -33,19 +33,11 @@ class PdAuthServiceProvider extends ServiceProvider
return null; return null;
}); });
if (!isset($config['guards']['auth'])) { if (!isset($config['guards'][$key])) {
config(['auth.guards.' . $key => ['driver' => $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(); $this->setupRouter();
} }