<?php

namespace App\Http\Requests\Bidding;

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'ids' => ['required', 'array', 'min:1'],
            'ids.*' => ['required', 'integer'],
        ];
    }

    public function messages(): array
    {
        return [
            'ids.required' => __('validation.required', ['attribute' => 'ids']),
            'ids.array' => __('validation.array', ['attribute' => 'ids']),
            'ids.min' => __('validation.min.array', ['attribute' => 'ids', 'min' => 1]),
        ];
    }
}
