analogueorm / laravel-auth by RemiCollin

AnalogueORM Authentication Driver for Laravel 5
625
6
2
Package Data
Maintainer Username: RemiCollin
Maintainer Contact: remi@code16.fr (Rémi Collin)
Package Create Date: 2014-12-04
Package Last Update: 2018-02-08
Language: PHP
License: MIT
Last Refreshed: 2024-04-26 03:13:33
Package Statistics
Total Downloads: 625
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 6
Total Watchers: 2
Total Forks: 4
Total Open Issues: 2

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