Commit f6faaaa1 authored by Nicolas Widart's avatar Nicolas Widart

Loading the assets in the AssetsViewComposer as well.

This will prevent issues on error pages that don't have assets because they don't go through the AdminBaseController.
parent 1afd0e8f
......@@ -41,6 +41,13 @@ class AssetsViewComposer
return;
}
foreach (config('asgard.core.core.admin-assets') as $assetName => $path) {
$path = $this->assetFactory->make($path)->url();
$this->assetManager->addAsset($assetName, $path);
}
$this->assetPipeline->requireCss(config('asgard.core.core.admin-required-assets.css'));
$this->assetPipeline->requireJs(config('asgard.core.core.admin-required-assets.js'));
$view->with('cssFiles', $this->assetPipeline->allCss());
$view->with('jsFiles', $this->assetPipeline->allJs());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment