36 lines
964 B
PHP
36 lines
964 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\V3\Dashboard\Harim\PanjareVahed;
|
|
|
|
use Illuminate\Contracts\Validation\ValidationRule;
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class GetFinalPolygonsRequest 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, ValidationRule|array>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'request_id' => 'required|exists:harims,panjare_vahed_id',
|
|
'final_area' => 'required|array',
|
|
'final_area.type' => 'required|string',
|
|
'final_area.coordinates' => 'required|array',
|
|
'final_plan' => 'required|array',
|
|
'final_plan.type' => 'required|string',
|
|
'final_plan.coordinates' => 'required|array',
|
|
];
|
|
}
|
|
}
|