Files
alrahma_sunday_school_api/app/Http/Requests/Assignment/StoreStudentAssignmentRequest.php
T
2026-06-09 00:03:03 -04:00

23 lines
623 B
PHP

<?php
namespace App\Http\Requests;
class StoreStudentAssignmentRequest extends FormRequest
{
public function authorize(): bool
{
return true; // add policy/permission check if needed
}
public function rules(): array
{
return [
'student_id' => ['required', 'integer', 'exists:students,id'],
'class_section_id' => ['required', 'integer', 'exists:class_sections,id'],
'semester' => ['nullable', 'string', 'max:50'],
'school_year' => ['nullable', 'string', 'max:50'],
'description' => ['nullable', 'string'],
];
}
}