<?php

declare(strict_types=1);

namespace App\Http\Requests\Account;

use Illuminate\Foundation\Http\FormRequest;

class UpdateProfileRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    /**
     * @return array<string, array<int, mixed>>
     */
    public function rules(): array
    {
        return [
            'first_name' => ['required', 'string', 'max:120'],
            'last_name' => ['required', 'string', 'max:120'],
            'phone_number' => ['nullable', 'string', 'max:40'],
            'marketing_email' => ['nullable', 'boolean'],
            'marketing_phone' => ['nullable', 'boolean'],
            'marketing_sms' => ['nullable', 'boolean'],
            'marketing_other' => ['nullable', 'boolean'],
        ];
    }
}
