mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 10:21:37 +00:00
19 lines
392 B
PHP
19 lines
392 B
PHP
<?php
|
|
|
|
namespace App\Actions\User;
|
|
|
|
use Laravel\Fortify\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', new Password, 'confirmed'];
|
|
}
|
|
}
|