PHPackages                             discoverydesign/filament-locksmith - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. discoverydesign/filament-locksmith

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

discoverydesign/filament-locksmith
==================================

2.0.0(9mo ago)159362MITPHPCI failing

Since Aug 6Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/discoverydesign/filament-locksmith)[ Packagist](https://packagist.org/packages/discoverydesign/filament-locksmith)[ RSS](/packages/discoverydesign-filament-locksmith/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (3)Versions (9)Used By (0)

Filament Locksmith
==================

[](#filament-locksmith)

🔒 Passwords inputs made easy in Filament PHP 🤫

[![Basic Example](https://raw.githubusercontent.com/discoverydesign/filament-locksmith/main/media/2.png)](https://raw.githubusercontent.com/discoverydesign/filament-locksmith/main/media/2.png)

[![Packagist Version](https://camo.githubusercontent.com/1572ccf0a84d8ea246ac842358fe2253974add1ed649bfd45d028bde6c863ef7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646973636f7665727964657369676e2f66696c616d656e742d6c6f636b736d6974682e737667)](https://camo.githubusercontent.com/1572ccf0a84d8ea246ac842358fe2253974add1ed649bfd45d028bde6c863ef7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646973636f7665727964657369676e2f66696c616d656e742d6c6f636b736d6974682e737667)[![Total Downloads](https://camo.githubusercontent.com/64cbb700d861d22feef4b3e9785682ef49ed91a7b0e49f5d1e6775fa92345507/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646973636f7665727964657369676e2f66696c616d656e742d6c6f636b736d6974682e737667)](https://camo.githubusercontent.com/64cbb700d861d22feef4b3e9785682ef49ed91a7b0e49f5d1e6775fa92345507/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646973636f7665727964657369676e2f66696c616d656e742d6c6f636b736d6974682e737667)

This package allows you to add a feature rich password input/field for Filament PHP.

```
composer require discoverydesign/filament-locksmith

```

Features
--------

[](#features)

- Ability to copy password
- Ability to automatically generate passwords. Default to 32 random character string.
- User-friendly preset generator, creates 3 word combo passwords. E.g: `elephant-plant-photo`.
- Automatically hash password when storing to database. Useful when a cast can't be used.
- Block password field being editable, forcing a randomly generated password.

How to use
----------

[](#how-to-use)

1. Install the package using `composer require discoverydesign/filament-locksmith`
2. Import the package inside your Filament Form with `use DiscoveryDesign\FilamentLocksmith\Forms\Components\PasswordInput`.
3. Add the `PasswordInput` form component to your form with `PasswordInput::make()`.
4. If required, publish the translation files with `php artisan vendor:publish --tag=filament-locksmith-translations`.

Examples
--------

[](#examples)

### Basic Example

[](#basic-example)

```
