$this->encodePrimaryKey($account->id), ]; } public function includeDefaultCompany(Account $account) { $transformer = new CompanyTransformer($this->serializer); return $this->includeItem($account->default_company, $transformer, Company::class); } public function includeUser(Account $account) { $transformer = new UserTransformer($this->serializer); return $this->includeItem($account->default_company->owner(), $transformer, User::class); } }