芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Providers/CustomServiceProvider.php
startingPoint(); } /** * Bootstrap services. * * @return void */ public function boot() { try{ $view_share = []; $view_share['basic_settings'] = BasicSettings::first(); $view_share['default_currency'] = Currency::default(); $view_share['__languages'] = Language::get(); $view_share['all_user_count'] = User::count(); $view_share['email_verified_user_count'] = User::where('email_verified', 1)->count(); $view_share['kyc_verified_user_count'] = User::where('kyc_verified', 1)->count(); $view_share['default_currency'] = Currency::default(); $view_share['__extensions'] = Extension::get(); $view_share['pending_ticket_count'] = UserSupportTicket::pending()->get()->count(); $view_share['module'] = ModuleSetting::get(); view()->share($view_share); $this->app->bind(BasicSettingsProvider::class, function () use ($view_share) { return new BasicSettingsProvider($view_share['basic_settings']); }); $this->app->bind(CurrencyProvider::class, function () use ($view_share) { return new CurrencyProvider($view_share['default_currency']); }); }catch(Exception $e) { // } } public function startingPoint() { if(env('PURCHASE_CODE','') == null) { Config::set('starting-point.status',true); Config::set('starting-point.point','/project/install/welcome'); } } }