1// Only for laravel 6.x and higher
2composer require laravel/ui "^1.0" --dev
3
4php artisan ui vue --auth
1They arere the definition of how the system should store and retrieve
2]information about your users.
3
4You can find the configuration in your config/auth.php
5
6https://stackoverflow.com/questions/34896130/laravel-what-is-a-guard
7https://mattstauffer.com/blog/multiple-authentication-guard-drivers-including-api-in-laravel-5-2/
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],