Skip to content

Commit

Permalink
fix: assets url
Browse files Browse the repository at this point in the history
  • Loading branch information
secondnetwork committed Jan 17, 2024
1 parent df89a74 commit c08fc60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Commands/KompassCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
4 changes: 4 additions & 0 deletions src/KompassServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit c08fc60

Please sign in to comment.