Files
sam-manage/app/Http/Requests/BizCertStoreRequest.php

38 lines
1019 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class BizCertStoreRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'biz_no' => 'required|string|max:12',
'company_name' => 'required|string|max:100',
'representative' => 'nullable|string|max:50',
'open_date' => 'nullable|date',
'address' => 'nullable|string|max:255',
'biz_type' => 'nullable|string|max:100',
'biz_item' => 'nullable|string|max:255',
'issue_date' => 'nullable|date',
'raw_text' => 'nullable|string',
'ocr_method' => 'nullable|string|max:20',
];
}
public function messages(): array
{
return [
'biz_no.required' => '사업자등록번호는 필수입니다.',
'company_name.required' => '상호명은 필수입니다.',
];
}
}