diff --git a/src/Commands/KompassCommand.php b/src/Commands/KompassCommand.php index 1add09b..591a66d 100644 --- a/src/Commands/KompassCommand.php +++ b/src/Commands/KompassCommand.php @@ -215,7 +215,6 @@ protected function publishAssets() { (new Filesystem)->deleteDirectory('public/vendor/kompass'); - (new Filesystem)->copyDirectory(__DIR__.'/../public/assets/build', 'vendor/kompass/assets'); // Models... copy(__DIR__.'/../../stubs/app/Models/User.php', app_path('Models/User.php')); diff --git a/src/KompassServiceProvider.php b/src/KompassServiceProvider.php index 5ed543d..b7b6114 100644 --- a/src/KompassServiceProvider.php +++ b/src/KompassServiceProvider.php @@ -52,6 +52,10 @@ public function boot(): void __DIR__.'/Models/User.php' => app_path('Models/User.php'), ], 'models'); + $this->publishes([ + __DIR__.'/../public/assets/build' => public_path('vendor/kompass/asset'), + ], 'assets'); + $this->publishes([ __DIR__.'/database/seeders/DatabaseSeeder.php' => database_path('seeders/DatabaseSeeder.php'), __DIR__.'/database/seeders/UserSeeder.php' => database_path('seeders/UserSeeder.php'),