user = User::first(); $this->company = $this->user->companies()->first(); company($this->company->id)->makeCurrent(); } public function getCompanyUsers() { return $this->company->users()->enabled()->get()->pluck('id')->toArray(); } }