/** * Return only the name and the url of all the links for the course. * * @param Course $course * @return mixed */ public function listLinksWithNames(Course $course) { return $this->select(['link', 'name'], $course->links()); }