https://github.com/slimani-dev/filament-quick-login
https://github.com/slimani-dev/filament-quick-login
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/slimani-dev/filament-quick-login
- Owner: slimani-dev
- License: mit
- Created: 2026-05-01T07:06:04.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-05-08T19:03:25.000Z (about 1 month ago)
- Last Synced: 2026-05-08T19:31:56.197Z (about 1 month ago)
- Language: PHP
- Size: 15.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Filament Quick Login
[](https://github.com/slimani-dev/filament-quick-login/actions/workflows/run-tests.yml)
[](https://github.com/slimani-dev/filament-quick-login/actions/workflows/phpstan.yml)
[](https://github.com/slimani-dev/filament-quick-login/actions/workflows/fix-php-code-style-issues.yml)
[](https://packagist.org/packages/slimani/filament-quick-login)
[](https://github.com/slimani-dev/filament-quick-login/blob/main/LICENSE)
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:
```bash
composer require slimani/filament-quick-login
```
## Usage
### Registering the Plugin
Register the plugin in your Panel Provider:
```php
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:
```php
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:
```php
QuickLoginPlugin::make()
->users(fn () => \App\Models\User::all())
```
## Testing
```bash
composer test
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](SECURITY.md) on how to report security vulnerabilities.
## Credits
- [Mohamed Slimani](https://github.com/slimani-dev)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.