public function update(Request $request)
 {
     $settings = ModvelInformation::orderBy('id', 'desc')->get();
     foreach ($settings as $setting) {
         $setting->value = $request->get($setting->name);
         $setting->save();
         $withCache = BaseHelpers::cacheAddOrUpdate("Modvel", $setting->name, $setting->value);
         $informationCache = ModuleHelpers::informationUpdateOrAdd($setting->name, $setting->value);
     }
     return redirect("admin/modules/Modvel/informations");
 }
 public function __construct()
 {
     BaseHelpers::checkBaseModules();
     $this->modules = BaseHelpers::getAllModuleDetails();
     $this->theme = Config::get('modulemanagement.theme');
     $menuPages = Page::where('showMenu', 1)->where('masterPageId', 0)->get();
     $brandname = ModvelHelpers::getInformation('brand-name');
     $mainModuleCategories = BaseHelpers::getAdminModuleCategories();
     view()->share('modules', $this->modules);
     view()->share('theme', $this->theme);
     view()->share('menuPages', $menuPages);
     view()->share('brandname', $brandname);
     view()->share('mainModuleCategories', $mainModuleCategories);
 }
 public function __construct()
 {
     $user = Auth::user();
     BaseHelpers::checkBaseModules();
     BaseHelpers::getAllModuleDetails();
     $this->modules = BaseHelpers::getModulesWithCategory();
     $this->theme = Config::get('modulemanagement.adminTheme');
     $cachedModules = Cache::get('modules');
     $panelbold = ModvelHelpers::getInformation('administratorpanelnamebold');
     $panelwhite = ModvelHelpers::getInformation('administratorpanelnamewhite');
     $brandname = ModvelHelpers::getInformation('brand-name');
     $panelname = ModvelHelpers::getInformation('administratorpanelname');
     $adminModuleCategories = BaseHelpers::getAdminModuleCategories();
     view()->share('modules', $this->modules);
     view()->share('theme', $this->theme);
     view()->share('user', $user);
     view()->share('panelbold', $panelbold);
     view()->share('panelwhite', $panelwhite);
     view()->share('panelname', $panelname);
     view()->share('brandname', $brandname);
     view()->share('adminModuleCategories', $adminModuleCategories);
 }