diff --git a/src/Providers/BlogCoreServiceProvider.php b/src/Providers/BlogCoreServiceProvider.php index dda2e7b..ec481fe 100644 --- a/src/Providers/BlogCoreServiceProvider.php +++ b/src/Providers/BlogCoreServiceProvider.php @@ -13,15 +13,10 @@ class BlogCoreServiceProvider extends ServiceProvider */ public function boot(): void { - $routePath = __DIR__.'/../../routes/blog-core.php'; - if (file_exists($routePath)) { - $this->loadRoutesFrom($routePath); - } - - $this->loadTranslationsFrom(__DIR__.'/../../lang', 'blog-core'); - $this->registerCommands(); + $this->registerAssetLoading(); + $this->registerAssetPublishing(); } @@ -70,4 +65,17 @@ protected function registerAssetPublishing(): void __DIR__.'/../../lang' => resource_path('lang/packages/blog-core'), ], 'lang'); } + + /** + * @return void + */ + protected function registerAssetLoading(): void + { + $routePath = __DIR__.'/../../routes/blog-core.php'; + if (file_exists($routePath)) { + $this->loadRoutesFrom($routePath); + } + + $this->loadTranslationsFrom(__DIR__.'/../../lang', 'blog-core'); + } }