add validation

This commit is contained in:
amirghasempoor
2026-06-22 15:30:35 +03:30
parent 3708e2ebfb
commit 0befa33b0f
8 changed files with 14 additions and 14 deletions

View File

@@ -41,7 +41,7 @@ class FinishRequest extends FormRequest
'زمان پایان ماموریت باید بعد از زمان شروع ماموریت باشد.'
);
}
if ($this->end_km < $mission->km) {
if ($this->end_km <= $mission->km) {
$validator->errors()->add(
'end_km',
'کیلومتر پایان باید بزرگتر از کیلومتر شروع باشد.'