45 lines
1.2 KiB
PHP
45 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class TourismRequest 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 [
|
|
'jenis_proyek' => 'required|string',
|
|
'nib' => 'string',
|
|
'business_name' => 'required|string',
|
|
'status_penanaman_modal' => 'string',
|
|
'business_form' => 'string',
|
|
'uraian_resiko_proyek' => 'string',
|
|
'project_name' => 'required|string',
|
|
'project_id' => 'required|string',
|
|
'business_address' => 'required|string',
|
|
'district_name' => 'required|string',
|
|
'village_name' => 'required|string',
|
|
'land_area' => 'required|string',
|
|
'investment_amount' => 'required|string',
|
|
'number_of_employee' => 'required|string',
|
|
'business_type_id' => 'required|string',
|
|
'terbit_oss' => 'required|date',
|
|
'business_scale_id' => 'required',
|
|
];
|
|
}
|
|
}
|