File "PasswordValidationRules.php"

Full Path: /var/www/drive/foundation/src/Auth/Fortify/PasswordValidationRules.php
File size: 373 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Common\Auth\Fortify;

use Laravel\Fortify\Rules\Password;

trait PasswordValidationRules
{
    /**
     * Get the validation rules used to validate passwords.
     */
    protected function passwordRules(): array
    {
        $password = new Password();
        $password->length(5);
        return ['required', 'string', $password, 'confirmed'];
    }
}