/** * List the path of all the images for the course. * * @param Course $course * @return mixed */ public function listImages(Course $course) { return $course->images()->lists('path'); }