$this->collection ]; } /** * Deprecated, kept for posterity. */ public function getCreators() { foreach($this->collection as &$t) { $creator = $t->creator; //dd($creator->name); $t->creator_name = $creator->name; } dd($this->collection); } }