940afe9319
API CI/CD / Validate (composer + pint) (push) Successful in 2m7s
API CI/CD / Test (PHPUnit) (push) Failing after 2m23s
API CI/CD / Build frontend assets (push) Successful in 2m18s
API CI/CD / Security audit (push) Successful in 31s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
25 lines
696 B
PHP
25 lines
696 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Parents;
|
|
|
|
use App\Http\Requests\ApiFormRequest;
|
|
|
|
class ParentEnrollmentActionRequest extends ApiFormRequest
|
|
{
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'enroll' => ['nullable', 'array'],
|
|
'enroll.*' => ['integer', 'min:1'],
|
|
'withdraw' => ['nullable', 'array'],
|
|
'withdraw.*' => ['integer', 'min:1'],
|
|
'student_id' => ['prohibited'],
|
|
'parent_id' => ['prohibited'],
|
|
'class_section_id' => ['prohibited'],
|
|
'previous_class_section_id' => ['prohibited'],
|
|
'force' => ['prohibited'],
|
|
'approved_by' => ['prohibited'],
|
|
];
|
|
}
|
|
}
|