attla/authentic

An effective serverless user authentication layer.

dev-main 2022-08-09 03:36 UTC

This package is auto-updated.

Last update: 2024-04-09 07:13:29 UTC


README

License Latest Stable Version Total Downloads

🆔 An effective serverless user authentication layer.

Installation

composer require attla/authentic

Configuration

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
{
    // ...
}

License

This package is licensed under the MIT license © Octha.