name, $this->id); } /** * Getter for Polymorphism. * @return mixed */ public function name() { return $this->model->name; } /** * Url to view this item. * @return string */ public function viewUrl() { return route('locations.show', $this->id); } public function glyph() { return ''; } }