Files
sam-api/app/Http/Requests/Tenant/TenantUpdateRequest.php
김보곤 814b965748 fix: [address] 주소 필드 255자 → 500자 확장
- DB 마이그레이션: clients, tenants, site_briefings, sites 테이블 address 컬럼 varchar(500)
- FormRequest 8개 파일 max:255 → max:500 변경
2026-03-04 11:29:18 +09:00

40 lines
1.4 KiB
PHP

<?php
namespace App\Http\Requests\Tenant;
use Illuminate\Foundation\Http\FormRequest;
class TenantUpdateRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'tenant_id' => 'required|integer|exists:tenants,id',
'company_name' => 'sometimes|string|max:100',
'email' => 'nullable|email|max:100',
'phone' => 'nullable|string|max:20',
'address' => 'nullable|string|max:500',
'business_num' => 'nullable|string|max:20',
'ceo_name' => 'nullable|string|max:100',
'logo' => 'nullable|string|max:255',
// 확장 필드 (JSON)
'options' => 'nullable|array',
'options.business_type' => 'nullable|string|max:100',
'options.business_category' => 'nullable|string|max:100',
'options.zip_code' => 'nullable|string|max:10',
'options.address_detail' => 'nullable|string|max:255',
'options.tax_invoice_email' => 'nullable|email|max:100',
'options.manager_name' => 'nullable|string|max:100',
'options.payment_bank' => 'nullable|string|max:100',
'options.payment_account' => 'nullable|string|max:50',
'options.payment_account_holder' => 'nullable|string|max:100',
'options.payment_day' => 'nullable|string|max:10',
];
}
}