<?php

namespace App\Http\Requests\CalendarConnection;

use Illuminate\Foundation\Http\FormRequest;

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

    /**
     * @return array<string, array<int, string>>
     */
    public function rules(): array
    {
        return [
            'from' => ['required', 'date'],
            'to' => ['required', 'date', 'after:from'],
        ];
    }
}
