- GraphViz 설치를 통한 ERD 다이어그램 생성 지원 - BelongsToTenantTrait → BelongsToTenant 트레잇명 수정 - Estimate, EstimateItem 모델의 인터페이스 참조 오류 해결 - 60개 모델의 완전한 관계도 생성 (graph.png, 4.1MB) - beyondcode/laravel-er-diagram-generator 패키지 활용 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
33 lines
964 B
PHP
33 lines
964 B
PHP
<?php
|
|
|
|
namespace App\Console;
|
|
|
|
use App\Console\Commands\PruneAuditLogs;
|
|
use App\Console\Commands\UpdateLogicalRelationships;
|
|
use App\Console\Commands\MakeModelWithRelationships;
|
|
use App\Console\Commands\GenerateSimpleRelationships;
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
class Kernel extends ConsoleKernel
|
|
{
|
|
protected $commands = [
|
|
PruneAuditLogs::class,
|
|
UpdateLogicalRelationships::class,
|
|
MakeModelWithRelationships::class,
|
|
GenerateSimpleRelationships::class,
|
|
];
|
|
|
|
protected function schedule(Schedule $schedule): void
|
|
{
|
|
// 매일 새벽 03:10에 감사 로그 정리(환경값 기반 보관기간)
|
|
$schedule->command('audit:prune')->dailyAt('03:10');
|
|
}
|
|
|
|
protected function commands(): void
|
|
{
|
|
// 라우트 콘솔 혹은 커맨드 자동 로딩 필요 시 사용
|
|
// $this->load(__DIR__.'/Commands');
|
|
}
|
|
}
|