- 4.1: stat_project_monthly + ProjectStatService (건설/프로젝트 월간) - 4.2: stat_system_daily + SystemStatService (API/감사/FCM/파일/결재) - 4.3: stat_events, stat_snapshots + StatEventService + StatEventObserver - 4.4: StatController (summary/daily/monthly/alerts) + StatQueryService + FormRequest 3개 + routes/stats.php - 4.5: DashboardService sam_stat 우선 조회 + 원본 DB 폴백 패턴 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
481 B
PHP
23 lines
481 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\V1\Stat;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class StatMonthlyRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'domain' => 'required|string|in:sales,finance,production,project',
|
|
'year' => 'required|integer|min:2020|max:2099',
|
|
'month' => 'nullable|integer|min:1|max:12',
|
|
];
|
|
}
|
|
}
|