25 lines
572 B
PHP
25 lines
572 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Billing;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class PayInvoiceRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'amount' => ['required', 'numeric', 'gt:0'],
|
|
'payment_method' => ['nullable', 'string', 'max:50'],
|
|
'payment_reference' => ['nullable', 'string', 'max:255'],
|
|
'paid_at' => ['nullable', 'date'],
|
|
'notes' => ['nullable', 'string'],
|
|
];
|
|
}
|
|
}
|