esquilo / multiple-fields-auth
This package provides a method of authentication using multiple fields for Laravel.
Requires
- php: ~5.6|~7.0
- illuminate/support: ~5.1
Requires (Dev)
- phpunit/phpunit: ~4.0||~5.0
- squizlabs/php_codesniffer: ^2.3
This package is not auto-updated.
Last update: 2020-08-18 03:08:10 UTC
README
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.