<?php

namespace App\Http\Requests\Reports;

use App\Http\Requests\CattrFormRequest;
use Filter;

class TimeUseReportRequest extends CattrFormRequest
{
    public function _authorize(): bool
    {
        return auth()->check();
    }

    public function _rules(): array
    {
        return [
            'users' => 'nullable|exists:users,id|array',
            'start_at' => 'required|date',
            'end_at' => 'required|date',
        ];
    }
}
