getModel('Profiles')->getClone()->setIgnoreRequest(1); $profileId = Platform::getInstance()->get_active_profile(); try { $this->profilename = $profilesModel->findOrFail($profileId)->description; $this->profileid = $profileId; $this->quickIcon = $profilesModel->quickicon; } catch (\Exception $e) { $this->container->segment->set('profile', 1); $this->profileid = 1; $this->profilename = $profilesModel->findOrFail(1)->description; } } }