<?php

namespace App\Http\Requests\Finance;

use App\Http\Requests\ApiFormRequest;

class ApplyExtraChargeRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return $this->user() !== null;
    }

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