diff --git a/resources/assets/.gitkeep b/resources/assets/js/app.js similarity index 100% rename from resources/assets/.gitkeep rename to resources/assets/js/app.js diff --git a/src/FoundationServiceProvider.php b/src/FoundationServiceProvider.php index 4592df4..78db349 100644 --- a/src/FoundationServiceProvider.php +++ b/src/FoundationServiceProvider.php @@ -94,25 +94,30 @@ public function provides() */ private function registerPublishes() { + $basePath = $this->getBasePath(); + // Config $this->publishes([ $this->getConfigFile() => config_path($this->vendor . DS . "{$this->package}.php") ]); // Views - $viewsPath = $this->getBasePath() . '/resources/views'; + $viewsPath = "$basePath/resources/views"; $this->loadViewsFrom($viewsPath, 'foundation'); $this->publishes([ $viewsPath => base_path('resources/views/vendor/foundation'), ], 'views'); // Translations - $translationsPath = $this->getBasePath() . '/resources/lang'; + $translationsPath = "$basePath/resources/lang"; $this->loadTranslationsFrom($translationsPath, 'foundation'); $this->publishes([ $translationsPath => base_path('resources/lang/vendor/foundation'), ], 'lang'); // Assets + $this->publishes([ + "$basePath/resources/assets/dist" => public_path('vendor/foundation'), + ], 'lang'); } }