Files
alrahma_sunday_school_api/app/Http/Requests/Payments/PaymentManualUpdateRequest.php
T
2026-03-09 02:52:13 -04:00

28 lines
813 B
PHP

<?php
namespace App\Http\Requests\Payments;
use App\Http\Requests\ApiFormRequest;
class PaymentManualUpdateRequest extends ApiFormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'amount' => ['required', 'numeric', 'min:0.01'],
'payment_method' => ['required', 'string', 'max:50'],
'payment_date' => ['nullable', 'date'],
'payment_type' => ['nullable', 'string', 'max:50'],
'check_number' => ['nullable', 'string', 'max:100'],
'payment_file' => ['nullable', 'file', 'mimes:jpg,jpeg,png,pdf', 'max:5120'],
'school_year' => ['nullable', 'string', 'max:50'],
'semester' => ['nullable', 'string', 'max:50'],
];
}
}