slimani / filament-quick-login
A quick login plugin for Filament login page.
v0.1.0
2026-05-01 07:06 UTC
Requires
- php: ^8.3
- filament/filament: ^4.0|^5.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^3.0
- orchestra/testbench: ^9.0|^10.0|^11.0
- pestphp/pest: ^3.0|^4.0
- pestphp/pest-plugin-laravel: ^3.0|^4.0
- pestphp/pest-plugin-livewire: ^3.0|^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
README
A quick login plugin for Filament login page. It allows you to quickly log in as predefined users, perfect for development and testing environments.
Features
- Quick Login Buttons: Adds buttons to the login page to log in instantly.
- Customizable Users: Define which users are available for quick login.
- Environment Aware: Easily enable or disable the plugin based on your application environment.
- Model Support: Works with any Eloquent user model.
Installation
You can install the package via composer:
composer require slimani/filament-quick-login
Usage
Registering the Plugin
Register the plugin in your Panel Provider:
use Slimani\QuickLogin\QuickLoginPlugin; public function panel(Panel $panel): Panel { return $panel ->plugin(QuickLoginPlugin::make()); }
Customizing the Plugin
You can customize the plugin's behavior using the following methods:
QuickLoginPlugin::make() ->enable(app()->environment('local')) // Only enable in local environment ->userModel(\App\Models\Admin::class) // Custom user model ->users([ 'admin@example.com', 'user@example.com', ]) // Predefined users by email
You can also pass a Closure or a Collection to the users() method:
QuickLoginPlugin::make() ->users(fn () => \App\Models\User::all())
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.