hardikkhorasiya09/change-login-field
最新稳定版本:1.0.0
Composer 安装命令:
composer require hardikkhorasiya09/change-login-field
包简介
README 文档
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
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-01