PHPackages                             chrisidakwo/laravel-auth-identifiers - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. chrisidakwo/laravel-auth-identifiers

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

chrisidakwo/laravel-auth-identifiers
====================================

Laravel custom authentication with an option to use a custom password validation implementation

1.0.3(2y ago)11.8k1GPL-3.0PHPPHP &gt;=8.1

Since Dec 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/chrisidakwo/laravel-auth-identifiers)[ Packagist](https://packagist.org/packages/chrisidakwo/laravel-auth-identifiers)[ RSS](/packages/chrisidakwo-laravel-auth-identifiers/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Laravel Authentication Identifiers
==================================

[](#laravel-authentication-identifiers)

Laravel Auth Identifier is a small library that allows you to use custom authentication identifiers such as: `email, password, phone_number or pin` and a password to authenticate users in your application. It also allows you to implement a custom password validator using a class or closure function.

Installation
------------

[](#installation)

```
composer require chrisidakwo/laravel-auth-identifiers
```

After installation, add the service provider to the providers array in the`config/app.php` file. Ensure it's below `App\Providers\AuthServiceProvider::class` to avoid Laravel's default `AuthServiceProvider` overriding this library's implementation.

```
ChrisIdakwo\Auth\Providers\CustomAuthServiceProvider::class
```

**Laravel 5.5** uses package auto-discovery, so doesn't require you to manually add the ServiceProvider.

#### Config

[](#config)

Publish config file only when you need to use a custom password validator

```
php artisan vendor:publish --tag=custom-auth
```

#### User Model

[](#user-model)

Update the `User` model to use the `ChrisIdakwo\Auth\Traits\CustomAuthUser` trait.

```
