Files
alrahma_sunday_school_api/app/Http/Requests/Finance/EventChargeLifecycleRequest.php
T
2026-06-08 23:30:22 -04:00

30 lines
859 B
PHP

<?php
namespace App\Http\Requests\Finance;
use Illuminate\Foundation\Http\FormRequest;
class EventChargeLifecycleRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'event_id' => ['nullable', 'integer'],
'parent_id' => ['nullable', 'integer'],
'student_id' => ['nullable', 'integer'],
'school_year' => ['nullable', 'string', 'max:20'],
'semester' => ['nullable', 'string', 'max:40'],
'event_name' => ['nullable', 'string', 'max:255'],
'title' => ['nullable', 'string', 'max:255'],
'description' => ['nullable', 'string'],
'amount' => ['nullable', 'numeric', 'min:0'],
'invoice_id' => ['nullable', 'integer'],
];
}
}