Update service provider

This commit is contained in:
Emanuel Mutschlechner
2019-04-18 22:19:19 +02:00
parent 36138633fe
commit 49e4c07756

View File

@@ -32,6 +32,11 @@ class MapsServiceProvider extends BaseServiceProvider
public function boot() public function boot()
{ {
$this->publishFiles(); $this->publishFiles();
Blade::include('maps::styles', 'mapstyles');
Blade::include('maps::scripts', 'mapscripts');
Blade::include('maps::index', 'map');
$this->loadViewsFrom(__DIR__.'/../resources/views', 'maps'); $this->loadViewsFrom(__DIR__.'/../resources/views', 'maps');
view()->composer('maps::*', function ($view) { view()->composer('maps::*', function ($view) {
@@ -54,10 +59,6 @@ class MapsServiceProvider extends BaseServiceProvider
public function register() public function register()
{ {
$this->mergeConfigFrom(__DIR__.'/../config/maps.php', 'vendor.maps'); $this->mergeConfigFrom(__DIR__.'/../config/maps.php', 'vendor.maps');
Blade::include('maps::styles', 'mapstyles');
Blade::include('maps::scripts', 'mapscripts');
Blade::include('maps::index', 'map');
} }
/** /**