<?php

namespace App\Actions\Fortify;

use JetBrains\PhpStorm\Pure;
use App\Rules\Password;

trait PasswordValidationRules
{
    /**
     * Get the validation rules used to validate passwords.
     *
     * @return array
     */
    #[Pure] protected function passwordRules()
    {
        return [
            'required',
            'string',
            new Password(),
            'confirmed'
        ];
    }
}
