<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'make' => ['sometimes', 'nullable', 'string', 'exists:vehicle_makes,slug'],
            'model' => ['sometimes', 'nullable', 'string', 'exists:vehicle_models,slug'],
            'per_page' => ['sometimes', 'integer', 'min:1', 'max:100'],
            'page' => ['sometimes', 'integer', 'min:1'],
            'single_image_placeholder' => ['sometimes', 'boolean'],
        ];
    }
}
