You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
415 B
19 lines
415 B
<?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<mixed>|string>
|
|
*/
|
|
protected function passwordRules(): array
|
|
{
|
|
return ['required', 'string', Password::default(), 'confirmed'];
|
|
}
|
|
}
|