getMyModules(); $modules = $this->getInstalledModules(); $installed = Module::where('company_id', '=', session('company_id'))->pluck('enabled', 'alias')->toArray(); return $this->response('modules.my.index', compact('purchased', 'modules', 'installed')); } }