2017 © Pedro PelĂĄez
 

library simpleauth

A simple authentication driver for Laravel

image

cedricve/simpleauth

A simple authentication driver for Laravel

  • Monday, June 19, 2017
  • by cedricve
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6,352 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 8 Versions
  • 8 % Grown

The README.md

Simple auth

A simple authentication driver, which makes it possible to define one or more users in the app.config file. This is great for mockup projects or when you don't have/need a database. This library extends the original Laravel auth drivers, so it uses exactly the same methods., (*1)

Installation

Install using composer:, (*2)

composer require cedricve/simpleauth

Add the service provider in app/config/app.php:, (*3)

'Cedricve\Simpleauth\SimpleauthServiceProvider',

The service provider will register a extension with the original auth manager. There is no need to register additional facades or objects., (*4)

Configuration

Change your default database connection name in app/config/auth.php:, (*5)

'driver' => 'simple'

And add a new property to the app/config/app.php file:, (*6)

'users' => [
    [
        "id" => 1,
        "username" => "root",
        "password" => "root",
        "firstname" => "Cédric",
        "secondname" => "Verstraeten"
        ...
    ],
    [
        "id" => 2,
        "username" => "root2",
        "password" => "root",
        "firstname" => "Cédric",
        "secondname" => "Verstraeten"
        ...
    ]
],

Examples

You can use the default Auth methods., (*7)

Basic Usage

Try to signin, (*8)

Auth::attempt(['username' => 'root', 'password' => 'root'))

Retrieving the user that signed in, (*9)

$user = Auth::user();

More info about authentication: http://laravel.com/docs/4.2/security, (*10)

The Versions

19/06 2017

dev-master

9999999-dev

A simple authentication driver for Laravel

  Sources   Download

MIT

The Requires

 

by Cédric Verstraeten

authentication auth simple

19/06 2017

v1.2.1

1.2.1.0

A simple authentication driver for Laravel

  Sources   Download

MIT

The Requires

 

by Cédric Verstraeten

authentication auth simple

19/06 2017

v1.2.2

1.2.2.0

A simple authentication driver for Laravel

  Sources   Download

MIT

The Requires

 

by Cédric Verstraeten

authentication auth simple

19/06 2017

v1.2.0

1.2.0.0

A simple authentication driver for Laravel

  Sources   Download

MIT

The Requires

 

by Cédric Verstraeten

authentication auth simple

15/01 2017

v1.1.2

1.1.2.0

A simple authentication driver for Laravel

  Sources   Download

MIT

The Requires

 

by Cédric Verstraeten

authentication auth simple

03/01 2017

v1.1.0

1.1.0.0

A simple authentication driver for Laravel

  Sources   Download

MIT

The Requires

 

by Cédric Verstraeten

authentication auth simple

03/01 2017

v1.1.1

1.1.1.0

A simple authentication driver for Laravel

  Sources   Download

MIT

The Requires

 

by Cédric Verstraeten

authentication auth simple

11/12 2014

v1.0.0

1.0.0.0

A simple authentication driver for Laravel

  Sources   Download

MIT

The Requires

 

by Cédric Verstraeten

authentication auth simple