29 lines
887 B
PHP
29 lines
887 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Http\Requests\TaxInvoice;
|
||
|
|
|
||
|
|
use Illuminate\Foundation\Http\FormRequest;
|
||
|
|
|
||
|
|
class SaveSupplierSettingsRequest extends FormRequest
|
||
|
|
{
|
||
|
|
public function authorize(): bool
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function rules(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'business_number' => ['required', 'string', 'max:20'],
|
||
|
|
'company_name' => ['required', 'string', 'max:100'],
|
||
|
|
'representative_name' => ['required', 'string', 'max:50'],
|
||
|
|
'address' => ['nullable', 'string', 'max:255'],
|
||
|
|
'business_type' => ['nullable', 'string', 'max:100'],
|
||
|
|
'business_item' => ['nullable', 'string', 'max:100'],
|
||
|
|
'contact_name' => ['nullable', 'string', 'max:50'],
|
||
|
|
'contact_phone' => ['nullable', 'string', 'max:20'],
|
||
|
|
'contact_email' => ['nullable', 'email', 'max:100'],
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|