20 lines
399 B
PHP
20 lines
399 B
PHP
<?php
|
|
|
|
namespace App\Actions\Fortify;
|
|
|
|
use App\Support\PasswordPolicy;
|
|
use Illuminate\Contracts\Validation\Rule;
|
|
|
|
trait PasswordValidationRules
|
|
{
|
|
/**
|
|
* Get the validation rules used to validate passwords.
|
|
*
|
|
* @return array<int, Rule|array<mixed>|string>
|
|
*/
|
|
protected function passwordRules(): array
|
|
{
|
|
return [...PasswordPolicy::rules(), 'confirmed'];
|
|
}
|
|
}
|