45 lines
1.2 KiB
PHP
45 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class UmkmRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*/
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'business_name' => 'required|string',
|
|
'business_address' => 'required|string',
|
|
'business_desc' => 'required|string',
|
|
'business_contact' => 'required|string',
|
|
'business_id_number' => 'string',
|
|
'business_scale_id' => 'required',
|
|
'owner_id' => 'required|string',
|
|
'owner_name' => 'required|string',
|
|
'owner_address' => 'required|string',
|
|
'owner_contact' => 'required|string',
|
|
'business_type' => 'required|string',
|
|
'business_form' => 'required|string',
|
|
'revenue' => 'required',
|
|
'village_code' => 'required|string',
|
|
'distric_code' => 'required',
|
|
'number_of_employee' => 'required',
|
|
'permit_status_id' => 'required',
|
|
];
|
|
}
|
|
}
|