/** * List the names of the all categories for a specific course. * @param Course $course * @return mixed */ public function getCourseCategories(Course $course) { return $this->listAll('name', 'id', $course->categories()); }