<?php

namespace App\Http\Requests\ContactMessages;

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'name' => ['required', 'string', 'max:255'],
            'email' => ['required', 'email', 'max:255'],
            'phone' => ['nullable', 'string', 'max:50'],
            'customer_type' => ['nullable', 'string', 'max:50'],
            'message' => ['required', 'string'],
        ];
    }
}
