openstamanager/app/Actions/Fortify/PasswordValidationRules.php

21 lines
439 B
PHP

<?php
namespace App\Actions\Fortify;
use Laravel\Fortify\Rules\Password;
trait PasswordValidationRules
{
/**
* Get the validation rules used to validate passwords.
*
* @return list{'required', 'string', Password, 'confirmed'}'
*
* @noinspection PhpDocSignatureInspection
*/
protected function passwordRules(): array
{
return ['required', 'string', new Password(), 'confirmed'];
}
}