auth.php
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'admin' => [
'driver' => 'session',
'provider' => 'admins',
],
'api' => [
'driver' => 'token',
'provider' => 'users',
],
],
/ * Foundation-Auth * /
laravel中的AuthenticateUsers.php-> foundation / auth
return $this->guard('admin')->attempt(
$this->credentials($request), $request->has('remember')
);