2025-09-11 14:39:55 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Console;
|
|
|
|
|
|
2025-11-06 17:45:49 +09:00
|
|
|
use App\Console\Commands\GenerateSimpleRelationships;
|
|
|
|
|
use App\Console\Commands\MakeModelWithRelationships;
|
2025-09-11 14:39:55 +09:00
|
|
|
use App\Console\Commands\PruneAuditLogs;
|
2025-09-24 22:30:28 +09:00
|
|
|
use App\Console\Commands\UpdateLogicalRelationships;
|
2025-09-11 14:39:55 +09:00
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
|
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
|
|
|
|
|
|
class Kernel extends ConsoleKernel
|
|
|
|
|
{
|
|
|
|
|
protected $commands = [
|
|
|
|
|
PruneAuditLogs::class,
|
2025-09-24 22:30:28 +09:00
|
|
|
UpdateLogicalRelationships::class,
|
|
|
|
|
MakeModelWithRelationships::class,
|
|
|
|
|
GenerateSimpleRelationships::class,
|
2025-09-11 14:39:55 +09:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
protected function schedule(Schedule $schedule): void
|
|
|
|
|
{
|
2025-11-10 13:59:48 +09:00
|
|
|
// Laravel 12부터는 routes/console.php에서 스케줄러를 정의합니다.
|
|
|
|
|
// Schedule::command() 방식 사용
|
2025-09-11 14:39:55 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function commands(): void
|
|
|
|
|
{
|
|
|
|
|
// 라우트 콘솔 혹은 커맨드 자동 로딩 필요 시 사용
|
|
|
|
|
// $this->load(__DIR__.'/Commands');
|
|
|
|
|
}
|
|
|
|
|
}
|