remove the form request

This commit is contained in:
2025-01-05 09:23:47 +03:30
parent ad97658216
commit a4e32d49b2
2 changed files with 1 additions and 43 deletions

View File

@@ -1,39 +0,0 @@
<?php
namespace App\Http\Requests\V3\ObservedItem;
use Illuminate\Foundation\Http\FormRequest;
class FilterRequest 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 [
'start_date' => 'date_format:Y-m-d',
'end_date' => 'date_format:Y-m-d|after_or_equal:start_date',
'road_patrol_id' => 'numeric',
'item_id' => 'numeric',
];
}
public function attributes(): array
{
return [
'start_date' => 'ساعت شروع گشت',
'end_date' => 'ساعت پایان گشت',
];
}
}