<?php

namespace App\Http\Requests\Rental;

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'added_days'        => 'required|integer|min:1',
            'amount'            => 'required|numeric|min:0',
            'payment_method_id' => 'required|exists:payment_methods,id',
            'notes'             => 'nullable|string',
        ];
    }
}
