Skip to content

Commit

Permalink
Even more cleaning up of the service provider
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassiewertsen committed Dec 25, 2019
1 parent 4bc9819 commit 6fe4d45
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,24 @@ public function boot()
{
parent::boot();

// Views
$this->loadViewsFrom(__DIR__ . '/../resources/views/', 'howToAddon');

// Config
$this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'howToAddon');

$this->publishes([
__DIR__ . '/../config/config.php' => config_path('how_to_addon.php'),
], 'How To Addon config file');

// Translations
$this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'howToAddon');

$this->publishes([
__DIR__.'/../resources/lang' => resource_path('lang/vendor/jonassiewertsen/howToAddon/'),
], 'How To Addon lang file');
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../resources/lang' => resource_path('lang/vendor/jonassiewertsen/howToAddon/'),
], 'How To Addon lang file');

$this->publishes([
__DIR__ . '/../config/config.php' => config_path('how_to_addon.php'),
], 'How To Addon config file');
}

// Commands
$this->loadCommands([
Setup::class,
]);

// Navigation
$this->createNavigation();
}

Expand Down

0 comments on commit 6fe4d45

Please sign in to comment.