New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

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
Older releases:4
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...

651,963,193 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

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

429,221,767 607
nunomaduro/collision

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

407,699,310 4,663

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