slimani/filament-quick-login 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

slimani/filament-quick-login

最新稳定版本:0.3.1

Composer 安装命令:

composer require slimani/filament-quick-login

包简介

A quick login plugin for Filament login page.

README 文档

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.

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 12
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-01