coolify/app/Console/Commands/Horizon.php

23 lines
449 B
PHP
Raw Normal View History

<?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
protected $description = 'Start Horizon';
2024-06-10 20:43:34 +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.');
$this->call('horizon');
exit(0);
}
2025-01-07 13:52:08 +00:00
exit(0);
}
}