-
Notifications
You must be signed in to change notification settings - Fork 1
Authentication Documentation.
Amirul Islam Anirban edited this page Oct 27, 2023
·
11 revisions
Micro framework's authentication facilities are made up of "guards". Guards define how users are authenticated for each request. For example, framework ships with a session guard which maintains state using session storage.
Your application's authentication configuration file is located at config/auth.php
.
return [
/**
* Set Default authentication guards.
*/
'defaults' => 'web',
/**
* Define multiple guards.
*/
'guards' => [
'web' => [
'provider' => 'users',
'model' => App\Models\Users::class,
],
// Custom guard.
'editor' => [
'provider' => 'editors',
'model' => App\Models\Editors::class,
],
],
];