mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
Исправление кода в контроллерах
This commit is contained in:
@@ -67,7 +67,7 @@ class SchoolClassController extends Controller
|
||||
$students = $class->students;
|
||||
$studentsOnlyFIO = [];
|
||||
foreach ($students as $student) {
|
||||
array_push($studentsOnlyFIO, $student->only('id', 'name', 'surname', 'patronymic'));
|
||||
array_push($studentsOnlyFIO, $student->only('id', 'name', 'surname', 'patronymic', 'photo'));
|
||||
}
|
||||
return response()->json($studentsOnlyFIO, 200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user