/** * List the paths of all the e-books to the course. * * @param Course $course * @return mixed */ public function listEbooks(Course $course) { return $course->ebooks()->lists('path'); }