mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-24 09:04:13 +02:00
19 lines
395 B
PHP
19 lines
395 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Actions\Fortify;
|
||
|
|
||
|
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'];
|
||
|
}
|
||
|
}
|