1You have to also register the guard in the config\auth.php
2
3'guards' => [
4 'web' => [
5 'driver' => 'session',
6 'provider' => 'users',
7 ],
8
9 'api' => [
10 'driver' => 'token',
11 'provider' => 'users',
12 ],
13
14 'admin' => [
15 'driver' => 'session',
16 'provider' => 'admins',
17 ],
18],