esquilo/multiple-fields-auth

This package is abandoned and no longer maintained. No replacement package was suggested.

This package provides a method of authentication using multiple fields for Laravel.

v1.0 2016-10-01 03:46 UTC

This package is not auto-updated.

Last update: 2020-08-18 03:08:10 UTC


README

Latest Version on Packagist Software License Total Downloads

In Laravel we can choose what field is going to be the username on the authentication process, but It is only possible to choose one field on the users table. This package provides a method of authentication using multiple fields.

Install

Via Composer

$ composer require esquilo/multiple-fields-auth

Then add the service provider in config/app.php:

esquilo\MultipleFieldsAuth\MultipleFieldsAuthServiceProvider::class,

Usage

namespace App\Http\Controllers\Auth;

...
use esquilo\MultipleFieldsAuth\MultipleFieldsAuth;

class LoginController extends Controller
{
    use MultipleFieldsAuth;

    protected $usernameFields = ['field1', 'field2', 'field3'];
}

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email ricardorichsn@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.