- DB 마이그레이션: clients, tenants, site_briefings, sites 테이블 address 컬럼 varchar(500) - FormRequest 8개 파일 max:255 → max:500 변경
26 lines
601 B
PHP
26 lines
601 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Tenant;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class TenantStoreRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'company_name' => 'required|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',
|
|
];
|
|
}
|
|
}
|