papalardo/filament-password-input

Password input for filament built with laravel

1.0.2 2022-10-25 16:51 UTC

This package is auto-updated.

Last update: 2024-05-25 20:43:02 UTC


README

Plugin built for Filament package with Laravel framework. This input shows/hides the password when clicking on the eye

Installation

Install via composer:

composer require papalardo/filament-password-input

Result

Docs result

Usage

use Illuminate\Validation\Rules\Password as PasswordRule;
use Papalardo\FilamentPasswordInput\PasswordInput;

class UserPasswordForm
{
    public static function inputs(): array
    {
        return [
            PasswordInput::make('password')
                ->label('Senha')
                ->required()
                ->rules(['confirmed', PasswordRule::min(8)]),

            PasswordInput::make('password_confirmation')
                ->label('Confirmação da senha')
                ->required(),
        ];
    }
}