hardikkhorasiya09 / change-login-field
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hardikkhorasiya09/change-login-field
Requires
- filament/filament: ^3.3
README
This Filament Plugin allows you to customize the login form fields in your Filament-based application. By default, Filament uses the email field for login, but this plugin lets you easily switch the login field to username, phone number, or any custom field of your choice.
Features
- Flexible Login Field: Choose between email, username, phone number, or any custom field for login.
- Configurable: Easily configure the login field via the
config/change-login-field.phpconfiguration file. - Seamless Integration: Works with your existing Filament setup without requiring major code changes.
Installation and Setup
You can install this plugin via Composer.
Step 1: Install the Plugin
Run the following command to install the package via Composer:
composer require hardikkhorasiya09/change-login-field
Step 2: Add this into your Filament PanelProvider class panel()
use Hardikkhorasiya09\ChangeLoginField\ChangeLoginFieldPlugin; $panel->... // ->login() //comment or remove login registration for default setting ->plugins([ ... ChangeLoginFieldPlugin::make() //required to enable this extension ]);
Step 3: Need to run below command
You can publish the config file change-login-field.php, by running this command
php artisan vendor:publish --tag=change-login-field-config