<?php

namespace App\Actions\Fortify;

use Laravel\Fortify\Rules\Password;

trait PasswordValidationRules
{
    /**
     * Get the validation rules used to validate passwords.
     *
     * @return array
     */
    protected function passwordRules()
    {
        // Dynamically get the password validation rules from the config
        return timebank_config('rules.profile_user.password', ['required', 'string', 'min:8', 'confirmed']);
    }
}
