attla / authentic
An effective serverless user authentication layer.
dev-main
2022-08-09 03:36 UTC
Requires
- php: >=7.2.5
- attla/cookier: dev-main
- attla/data-token: dev-main
- illuminate/auth: ^6|^7|^8|^9
This package is auto-updated.
Last update: 2024-11-09 08:25:16 UTC
README
🆔 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.