2017 © Pedro PelĂĄez
 

library auth

Laravel module to implement the authentication system into your applications.

image

cerbero/auth

Laravel module to implement the authentication system into your applications.

  • Monday, December 28, 2015
  • by cerbero
  • Repository
  • 6 Watchers
  • 51 Stars
  • 182 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 21 Versions
  • 2 % Grown

The README.md

, (*1)

Auth

Author Build Status Latest Version Software License Code Climate Quality Score Gratipay, (*2)

SensioLabsInsight, (*3)

Auth is a Laravel package to quickly implement the authentication system into your applications, avoiding you to reinvent the wheel every time you start a new project and letting you customize every single aspect of the process., (*4)

This package is intended to be a more customizable alternative to the authentication system shipped by Laravel out of the box and also includes some security features like honeypot and login throttling., (*5)

Features

List of features included in this package:, (*6)

  • Login
  • Registration
  • Password reset
  • Logout
  • Full customization
  • CSRF protection
  • Honeypot trap
  • Login throttling
  • Event dispatching

Install

Run this command in your application root:, (*7)

composer require cerbero/auth

Add the service provider to the providers list in config/app.php:, (*8)

Cerbero\Auth\AuthServiceProvider::class,

Add the following route middleware in app/Http/Kernel.php:, (*9)

'honeypot' => \Cerbero\Auth\Http\Middleware\Honeypot::class,

And then run these two commands in your terminal:, (*10)

php artisan vendor:publish --provider="Cerbero\Auth\AuthServiceProvider”
php artisan migrate

Now you have the database migrated with the users table and can customize the behavior of the authentication system by editing the file config/_auth.php as well as modify/translate the messages in resources/lang/packages., (*11)

Finally, in order to display custom messages to the users, add the DisplaysExceptions trait to your exceptions handler:, (*12)

use Cerbero\Auth\Exceptions\DisplaysExceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;

class Handler extends ExceptionHandler {

    use DisplaysExceptions;

    public function render($request, Exception $e)
    {
        if($printable = $this->displayExceptions($e)) return $printable;

        return parent::render($request, $e);
    }

}

So now you can display the custom messages in your views:, (*13)

@if ($error = session('error'))


{{ $error }}
@elseif ($success = session('success'))
{{ $success }}
@endif

Events

All authentication processes are preceded and followed by events to provide an easy way to extend the package functionalities. The following list shows all the available events:, (*14)

  • auth.login.start
  • auth.login.end
  • auth.logout.start
  • auth.logout.end
  • auth.register.start
  • auth.register.end
  • auth.recover.start
  • auth.recover.end
  • auth.reset.start
  • auth.reset.end

The Versions

28/12 2015

dev-master

9999999-dev https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

registration laravel authentication auth login throttling honeypot

28/12 2015

1.6.4

1.6.4.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

registration laravel authentication auth login throttling honeypot

28/12 2015

dev-develop

dev-develop https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

registration laravel authentication auth login throttling honeypot

26/12 2015

1.6.3

1.6.3.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

registration laravel authentication auth login throttling honeypot

26/12 2015

1.6.2

1.6.2.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

registration laravel authentication auth login throttling honeypot

21/10 2015

1.6.1

1.6.1.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

registration laravel authentication auth login throttling honeypot

21/10 2015

1.6.0

1.6.0.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

registration laravel authentication auth login throttling honeypot

13/10 2015

1.5.2

1.5.2.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

registration laravel authentication auth login throttling honeypot

13/10 2015

1.5.3

1.5.3.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

registration laravel authentication auth login throttling honeypot

13/10 2015

1.5.1

1.5.1.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

registration laravel authentication auth login throttling honeypot

11/10 2015

1.5.0

1.5.0.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

registration laravel authentication auth login logout password reset

05/10 2015

1.4.0

1.4.0.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

registration laravel authentication auth login logout password reset

15/09 2015

1.3.0

1.3.0.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

registration laravel authentication auth login logout password reset

08/05 2015

1.2.3

1.2.3.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

registration laravel authentication auth login logout password reset

08/05 2015

1.2.2

1.2.2.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

registration laravel authentication auth login logout password reset

08/05 2015

1.2.1

1.2.1.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

registration laravel authentication auth login logout password reset

08/05 2015

1.2.0

1.2.0.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

registration laravel authentication auth login logout password reset

01/05 2015

1.1.0

1.1.0.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

registration laravel authentication auth login logout password reset

30/04 2015

1.0.3

1.0.3.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

registration laravel authentication auth login logout password reset

30/04 2015

1.0.2

1.0.2.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

registration laravel authentication auth login logout password reset

29/04 2015

1.0.1

1.0.1.0 https://github.com/cerbero90/auth

Laravel module to implement the authentication system into your applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

registration laravel authentication auth login logout password reset