From 352d61edd57bf941b2fe0df6255a53a6165a30ef Mon Sep 17 00:00:00 2001 From: IACHI Dimitri Date: Fri, 16 Aug 2024 19:27:15 +0200 Subject: [PATCH] Remove publishing of public assets The commit removes the publishing of Backpack's public assets from the `publishFiles` method in the `BackpackServiceProvider` class. This change prevent double assets publishing with backpack:publish-header-metas` command. --- src/BackpackServiceProvider.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/BackpackServiceProvider.php b/src/BackpackServiceProvider.php index a341730d59..c3119fc4a6 100644 --- a/src/BackpackServiceProvider.php +++ b/src/BackpackServiceProvider.php @@ -141,7 +141,6 @@ public function registerMiddlewareGroup(Router $router) public function publishFiles() { $backpack_views = [__DIR__.'/resources/views' => resource_path('views/vendor/backpack')]; - $backpack_public_assets = [__DIR__.'/public' => public_path()]; $backpack_lang_files = [__DIR__.'/resources/lang' => app()->langPath().'/vendor/backpack']; $backpack_config_files = [__DIR__.'/config' => config_path()]; @@ -159,7 +158,6 @@ public function publishFiles() $minimum = array_merge( // $backpack_views, // $backpack_lang_files, - $backpack_public_assets, $backpack_config_files, $backpack_menu_contents_view, $backpack_custom_routes_file, @@ -171,7 +169,6 @@ public function publishFiles() $this->publishes($backpack_lang_files, 'lang'); $this->publishes($backpack_views, 'views'); $this->publishes($backpack_menu_contents_view, 'menu_contents'); - $this->publishes($backpack_public_assets, 'public'); $this->publishes($backpack_custom_routes_file, 'custom_routes'); $this->publishes($gravatar_assets, 'gravatar'); $this->publishes($minimum, 'minimum');