Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | #[Post('schools/{school}/students', middleware: SubstituteBindings::class)] |
||
16 | public function store( |
||
17 | School $school, |
||
18 | StoreStudentRequest $request, |
||
19 | CreateStudent $createStudent, |
||
20 | ) { |
||
21 | $student = $createStudent->handle($school, $request->validated()); |
||
22 | |||
23 | return StudentResource::make($student); |
||
24 | } |
||
26 |