Password

You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.

Extends Text * has the same features

Everything is the same as the "Text field", the only difference is input type = password

And usually it could be accompanied with the password confirmation field

use MoonShine\Fields\Password;
use MoonShine\Fields\PasswordRepeat;
 
//...
 
public function fields(): array
{
return [
Password::make('Password', 'password')->hideOnIndex(),
PasswordRepeat::make('Repeat password', 'password_repeat')->hideOnIndex(),
];
}
 
//...