2024-03-19 09:24:23 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
|
|
|
|
|
|
class Horizon extends Command
|
|
|
|
|
{
|
|
|
|
|
protected $signature = 'start:horizon';
|
2024-06-10 20:43:34 +00:00
|
|
|
|
2024-03-19 09:24:23 +00:00
|
|
|
protected $description = 'Start Horizon';
|
2024-06-10 20:43:34 +00:00
|
|
|
|
2024-03-19 09:24:23 +00:00
|
|
|
public function handle()
|
|
|
|
|
{
|
2024-11-12 14:18:48 +00:00
|
|
|
if (config('constants.horizon.is_horizon_enabled')) {
|
2024-12-10 09:46:05 +00:00
|
|
|
$this->info('Horizon is enabled on this server.');
|
2024-03-19 09:24:23 +00:00
|
|
|
$this->call('horizon');
|
|
|
|
|
exit(0);
|
2025-01-07 14:31:43 +00:00
|
|
|
} else {
|
|
|
|
|
exit(0);
|
2024-03-19 09:24:23 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|