pedi3/app/Actions/Fortify/PasswordValidationRules.php

19 lines
408 B
PHP
Raw Permalink Normal View History

2024-02-24 20:41:30 -03:00
<?php
namespace App\Actions\Fortify;
use Illuminate\Validation\Rules\Password;
trait PasswordValidationRules
{
/**
* Get the validation rules used to validate passwords.
*
* @return array<int, \Illuminate\Contracts\Validation\Rule|array|string>
*/
protected function passwordRules(): array
{
return ['required', 'string', Password::default(), 'confirmed'];
}
}