Пример #1
0
 /**
  * Require the default assets from config file on the asset pipeline
  */
 private function requireDefaultAssets()
 {
     $this->assetPipeline->requireCss(config('asgard.core.core.admin-required-assets.css'));
     $this->assetPipeline->requireJs(config('asgard.core.core.admin-required-assets.js'));
 }
Пример #2
0
 public function compose(View $view)
 {
     $view->with('sitename', $this->setting->get('core::site-name', App::getLocale()));
     $view->with('cssFiles', $this->assetPipeline->allCss());
     $view->with('jsFiles', $this->assetPipeline->allJs());
 }