JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3RbrcreatorId()); if (!empty($settings['timezone'])) { Config::set('app.timezone', $settings['timezone']); date_default_timezone_set(Config::get('app.timezone', 'UTC')); }*/ $settings = Utility::settingsById(\Auth::user()->creatorId()); if (!empty($settings['timezone'])) { // Ensure the timezone is valid before setting it $timezone = $settings['timezone'] === 'Asia/Calcutta' ? 'Asia/Kolkata' : $settings['timezone']; if (in_array($timezone, timezone_identifiers_list())) { Config::set('app.timezone', $timezone); date_default_timezone_set($timezone); } else { // Fallback to UTC if invalid timezone Config::set('app.timezone', 'UTC'); date_default_timezone_set('UTC'); } } \App::setLocale(\Auth::user()->lang); if(\Auth::user()->type == 'super admin') { $migrations = $this->getMigrations(); // $messengerMigration = Utility::get_messenger_packages_migration(); $dbMigrations = $this->getExecutedMigrations(); $Modulemigrations = glob(base_path().'/Modules/LandingPage/Database'.DIRECTORY_SEPARATOR.'Migrations'.DIRECTORY_SEPARATOR.'*.php'); $numberOfUpdatesPending = (count($migrations) + count($Modulemigrations)) - count($dbMigrations); if($numberOfUpdatesPending > 0) { Utility::addNewData(); User::defaultEmail(); $users = User::where('type', 'company')->get(); foreach($users as $user) { $user->userDefaultDataRegister($user->id); } return redirect()->route('LaravelUpdater::welcome'); } } } $input = $request->all(); // array_walk_recursive( // $input, function (&$input){ // $input = strip_tags($input); // } // ); $request->merge($input); return $next($request); } }