function () { return $this->userCard->fio; }, 'position' => function () { return $this->userCard->position->name; }, 'stack' => function () { return $this->userCard->getSkillsName(); }, 'resume' => function () { return $this->userCard->vc_text; }, 'projects' => function () { return $this->userCard->userCardPortfolioProjects; }, ]; } public function getUserCard() { return $this->hasOne(UserCard::class, ['id_user' => 'id']); } }