analogue/laravel-auth

AnalogueORM Authentication Driver for Laravel 5
627 6
Install
composer require analogue/laravel-auth
Latest Version:v5.6.0
PHP:>=7.0
Laravel:5
License:MIT
Last Updated:Feb 8, 2018
Links: GitHub  ·  Packagist
Maintainer: RemiCollin

Analogue ORM - Laravel Authentication Driver

Build Status Latest Version Software License

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

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released PHP Laravel License
v5.6.0 >=7.0 5.5.*|5.6.* MIT
v5.5.0 >=5.6.4 5.4.*|5.5.* MIT
v5.4.0 >=5.5.0 ~5.4.0 MIT
v5.3.0 >=5.5.0 ~5.3.0 MIT
v5.2.3 >=5.5.0 ~5.2 MIT