Files
sam-api/app/Http/Requests/Design/BomTemplate/DiffRequest.php
hskwon cc206fdbed style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수
- 302개 파일 스타일 이슈 자동 수정
- 코드 로직 변경 없음 (포맷팅만)
2025-11-06 17:45:49 +09:00

30 lines
765 B
PHP

<?php
namespace App\Http\Requests\Design\BomTemplate;
use Illuminate\Foundation\Http\FormRequest;
class DiffRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'other_template_id' => 'required|integer|min:1',
];
}
public function messages(): array
{
return [
'other_template_id.required' => __('validation.required', ['attribute' => 'other_template_id']),
'other_template_id.integer' => __('validation.integer', ['attribute' => 'other_template_id']),
'other_template_id.min' => __('validation.min.numeric', ['attribute' => 'other_template_id', 'min' => 1]),
];
}
}