add column to road observation histories

This commit is contained in:
2025-02-25 13:24:14 +03:30
parent 320efee4c7
commit 2adf091f7d
5 changed files with 132 additions and 14 deletions

View File

@@ -23,6 +23,7 @@ class ReferRequest extends FormRequest
{
return [
'edarate_shahri_id' => 'required|exists:edarate_shahri,id',
'province_id' => 'required|exists:provinces,id',
'refer_description' => 'required|string',
];
}

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Http\Requests\V3\RoadObservation;
use Illuminate\Foundation\Http\FormRequest;
class RestoreRequest 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 [
'restore_description' => 'required|string',
];
}
}