1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- namespace App\Providers;
- use App\Services\Common\CategoryService;
- use App\Services\SubsiteService;
- use Illuminate\Support\Facades\Request;
- use Illuminate\Support\ServiceProvider;
- use App\Services\Content\ExplainService;
- use App\Services\Content\NavigationService;
- use View;
- class ViewServiceProvider extends ServiceProvider
- {
-
- public function boot(SubsiteService $subsiteService, ExplainService $explainService, NavigationService $navigationService, CategoryService $CategoryService)
- {
-
- $foot_explains = $explainService->getLimitExplains(array('is_display'=>'1'), 10);
-
- $nav_where = array(
- 'alias' => 'AIX_top',
- 'display'=>'1',
- 'is_personal'=>'0',
- );
- $top_navs = $navigationService->getTopNavs($nav_where, 9);
- View::share('current_url', Request::getRequestUri());
- View::share('foot_explains', $foot_explains);
- View::share('top_navs', $top_navs);
- View::share('category', $CategoryService->getCategory());
- View::share('AIX_city_spell', $CategoryService->getCitySpell());
- View::share('subsites', $subsiteService->getAllSubsite());
- View::share('wx_qrcode', upload_asset(subsite_config('aix.system.oauth.wechat_official.wechat_qrcode')));
- }
-
- public function register()
- {
-
- }
- }
|