承接 c6digital/filament-passwordless-login 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

c6digital/filament-passwordless-login

最新稳定版本:v1.0.0

Composer 安装命令:

composer require c6digital/filament-passwordless-login

包简介

Simple passwordless login for Filament.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package provides a new Login component that replaces the traditional email and password form with a simple passwordless login form.

Installation

You can install the package via composer:

composer require c6digital/filament-passwordless-login

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-passwordless-login-views"

Usage

Register the plugin on your Filament panel.

use C6Digital\PasswordlessLogin\PasswordlessLoginPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->//...
        ->plugin(PasswordlessLoginPlugin::make());
}

This will automatically register the new login page, overwriting the one provided by Filament. It also registers the necessary routes to authenticate users using a magic login link.

Using password in local environments

Sending login links emails during development can be difficult. If you are still storing passwords for your users, you can enable password authentication in local environments.

PasswordlessLoginPlugin::make()
    ->allowPasswordInLocalEnvironment()

Now a "Password" field will be displayed on the Login page when APP_ENV=local.

Action

This package also provides an Action that can be used inside of Filament tables.

use C6Digital\PasswordlessLogin\Actions\LoginLinkAction;

$table
    ->actions([
        LoginLinkAction::make(),
    ]);

Command

If you need to generate a login link without accessing the site, you can use the passwordless:link command.

php artisan passwordless:link {email}

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.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-15