2017 © Pedro Peláez
 

library laravel-memory-auth-provider

Laravel In memory auth provider.

image

tomgrohl/laravel-memory-auth-provider

Laravel In memory auth provider.

  • Monday, January 29, 2018
  • by tomgrohl
  • Repository
  • 2 Watchers
  • 3 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Latest Stable Version Latest Unstable Version License, (*1)

Laravel Memory Auth Provider

A In Memory User Auth Provider for Laravel 5.1+., (*2)

Allows you to Authenticate and admin area without the need for a database. Great as a quick and temporary solution during development, particularly if your site is mocked out and not let using a database., (*3)

Installation

You can install it using composer:, (*4)

composer require tomgrohl/laravel-memory-auth-provider, (*5)

Configuration

1 .Add service provider

Add the following to your providers in the app config, (*6)

<?php

return [

    //...

    'providers' => [
        //...    
        'Tomgrohl\Laravel\Auth\AuthServiceProvider',

        // OR
        \Tomgrohl\Laravel\Auth\AuthServiceProvider::class,
    ]


];

2. Setup config

In the auth config you will need to set the driver:, (*7)

    'driver' => 'memory',

Add also setup your in memory users:, (*8)

    'memory' => [
        'model' => 'Illuminate\Auth\GenericUser',
        'users' => [

            'admin' => [
                'id' => 1,
                // Hashed passord using the hasher service
                'password' => '$2y$10$Mfusxb1546MFxQ4A1s4GE.OF/gFuI8Y6Hw9xnlZeiHtjDl0/pnXPK',
            ],
        ],
    ],

You can add any properties you want making it easy to switch out the Auth drivers., (*9)

The package comes with a command for hashing passwords, making it easier to setup passwords, just run the following command to hash your password:, (*10)

php artisan tomgrohl:hash:password mypassword

The Versions

29/01 2018

1.0.x-dev

1.0.9999999.9999999-dev

Laravel In memory auth provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel auth inmemory

29/01 2018

dev-master

9999999-dev

Laravel In memory auth provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel auth inmemory

29/01 2018

1.0.1

1.0.1.0

Laravel In memory auth provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel auth inmemory

08/04 2017

1.0.0

1.0.0.0

Laravel In memory auth provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel auth inmemory