analogue / laravel-auth
AnalogueORM Authentication Driver for Laravel 5
Installs: 627
Dependents: 0
Suggesters: 1
Security: 0
Stars: 6
Watchers: 1
Forks: 4
Open Issues: 2
pkg:composer/analogue/laravel-auth
Requires
- php: >=7.0
- analogue/orm: 5.5.*|5.6.*
- illuminate/support: 5.5.*|5.6.*
Requires (Dev)
- laravel/browser-kit-testing: ^1.0
- laravel/laravel: 5.5.*|5.6.*
- mockery/mockery: 0.9.*
- phpunit/phpunit: ^5.0
- symfony/css-selector: 2.8.*|3.0.*|4.0.*
- symfony/dom-crawler: 2.8.*|3.0.*|4.0.*
README
This package is an out-of-the-box Analogue authentication driver for Laravel 5. It replaces the Eloquent Model with an Analogue Entity, while using the default database structure found in the default laravel install.
Installation
composer require "analogue/laravel-auth"
Configuration
Add this line to the Service Providers in config/app.php :
Analogue\LaravelAuth\AnalogueAuthServiceProvider::class,
Then, in auth.php
Add a analogue provider right after the users provider. Of course, you can change the model to your own domain class.
config/auth.php :
'providers' => [
'analogue' => [
'driver' => 'analogue',
'model' => Analogue\LaravelAuth\User::class,
],
Then, change the providers used to authenticate in the guards section :
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'analogue',
],
'api' => [
'driver' => 'token',
'provider' => 'users',
],
],
Licence
MIT