slimani/filament-quick-login

A quick login plugin for Filament login page.

Maintainers

Package info

github.com/slimani-dev/filament-quick-login

pkg:composer/slimani/filament-quick-login

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-05-01 07:06 UTC

This package is auto-updated.

Last update: 2026-05-01 08:05:48 UTC


README

GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status Total Downloads 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:

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.