38 lines
940 B
PHP
38 lines
940 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Grading;
|
|
|
|
use App\Http\Requests\ApiFormRequest;
|
|
use Illuminate\Validation\Rule;
|
|
|
|
class BelowSixtyDecisionSaveRequest extends ApiFormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'student_id' => ['required', 'integer', 'min:1'],
|
|
'school_year' => ['required', 'string', 'max:50'],
|
|
'semester' => ['nullable', 'string', 'max:20'],
|
|
'decision' => [
|
|
'nullable',
|
|
'string',
|
|
'max:100',
|
|
Rule::in([
|
|
'Pass',
|
|
'Repeat Class',
|
|
'Make-up exam in fall',
|
|
'Deferred decision',
|
|
'Expel',
|
|
'Withdrawn',
|
|
]),
|
|
],
|
|
'notes' => ['nullable', 'string'],
|
|
];
|
|
}
|
|
}
|