Changes
This commit is contained in:
@@ -23,6 +23,7 @@ class ClientScheduleController extends Controller
|
||||
$query->whereRaw('LOWER(title) like ?', ["%".strtolower($search)."%"]);
|
||||
})
|
||||
->with('schedules')
|
||||
->with('faculty')
|
||||
->orderBy('title')
|
||||
->get());
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ class ClientEducationalGroupResource extends JsonResource
|
||||
'id' => $this->id,
|
||||
'title' => $this->title,
|
||||
'schedules' => ClientScheduleSearchResource::collection($this->schedules),
|
||||
'faculty' => $this->faculty->title,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user