π An effective serverless user authentication layer.
composer require attla/authentic
In ./config/auth.php
on guards
add the following array:
'guards' => [
// ...
'authentic' => [
'driver' => 'authentic',
'provider' => 'users',
],
],
This package needs to be used with eloquent provider driver.
If you want to configure the authentic as your default authentication guard set on defaults.guard
as:
'defaults' => [
'guard' => 'authentic',
// ...
],
Your model needs extends Authenticatable
, as:
class Example extends Authenticatable
{
// ...
}
This package is licensed under the MIT license Β© Octha.