Skip to content

Commit

Permalink
Remove publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed May 2, 2024
1 parent eabee8b commit 46337f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
5 changes: 1 addition & 4 deletions src/Console/PublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ class PublishCommand extends Command
*/
public function handle()
{
$this->call('vendor:publish', [
'--tag' => 'horizon-assets',
'--force' => true,
]);
$this->components->warn('Horizon no longer publishes its assets. You may stop calling the `horizon:publish` command.');
}
}
13 changes: 0 additions & 13 deletions src/HorizonServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public function boot()
$this->registerEvents();
$this->registerRoutes();
$this->registerResources();
$this->defineAssetPublishing();
$this->offerPublishing();
$this->registerCommands();
}
Expand Down Expand Up @@ -75,18 +74,6 @@ protected function registerResources()
$this->loadViewsFrom(__DIR__.'/../resources/views', 'horizon');
}

/**
* Define the asset publishing configuration.
*
* @return void
*/
public function defineAssetPublishing()
{
$this->publishes([
HORIZON_PATH.'/public/build' => public_path('vendor/horizon'),
], ['horizon-assets', 'laravel-assets']);
}

/**
* Setup the resource publishing groups for Horizon.
*
Expand Down

0 comments on commit 46337f2

Please sign in to comment.