# Password

Just an example. Password is an [Input](https://tina-hammar.gitbook.io/tall-forms/field/fields/input) field

```php
protected function fields()
{
    return [
        Input::make('Password')
            ->type('password')
            ->rules('required|alpha_dash|min:8'),
        Input::make('Repeat password', 'password_confirmation')
            ->type('password')
            ->custom() //will not be saved to the model
            ->rules('required|same:form_data.password')
    ];
}
```
