vito/app/Actions/User/PasswordValidationRules.php
2025-03-12 13:31:10 +01:00

17 lines
280 B
PHP

<?php
namespace App\Actions\User;
use Laravel\Fortify\Rules\Password;
trait PasswordValidationRules
{
/**
* @return array<int, mixed>
*/
protected function passwordRules(): array
{
return ['required', 'string', new Password, 'confirmed'];
}
}