26 lines
667 B
PHP
26 lines
667 B
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:255',
|
||
|
|
'business_num' => 'nullable|string|max:20',
|
||
|
|
'ceo_name' => 'nullable|string|max:100',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|