phpsa/filament-password-reveal

可显示密码输入

资助包维护!
phpsa

安装次数: 80,602

依赖: 4

建议者: 0

安全性: 0

星标: 51

关注者: 3

分支: 12

公开问题: 2

语言:Blade

v2.1.1 2023-11-29 22:34 UTC

README

Latest Version on Packagist Semantic Release Total Downloads

密码输入组件

支持显示/隐藏、复制和生成密码输入

安装

您可以通过composer安装此包

composer require phpsa/filament-password-reveal

用法

Password::make('password')->autocomplete('new_password')->...

附加方法

允许扩展的方法

  • 密码显示

    • ...->revealable(bool|Closure $condition) - 默认: true
    • ...->initiallyHidden(bool|Closure $condition) - 默认: true
    • ...->showIcon(string $icon) - 默认: heroicon-o-eye
    • ...->hideIcon(string $hide) - 默认: heroicon-o-eye-open
  • 密码复制到剪贴板

    • ...->copyable(bool|Closure) 默认: false
    • ...->copyIcon(string $icon) 默认: heroicon-o-clipboard
  • 生成密码 ...->generatable(bool|Closure) 默认: false ...->generateIcon($icon) 默认: heroicon-o-key ...->passwordLength(int) 默认: 8 ...->passwordUsesNumbers(bool) 默认: true ...->passwordUsesSymbols(bool) 默认: true

三者可同时启用。

变更日志

请查看 CHANGELOG 了解最近更改的详细信息。

鸣谢

许可

MIT许可 (MIT)。请查看 许可文件 了解更多信息。