From cc8662445c3e9c583bb8b5b56aa6778703992022 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Tue, 3 Dec 2019 15:52:00 -0500 Subject: [PATCH] Allow nullable on flight_id --- app/Http/Requests/Acars/UpdateRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Requests/Acars/UpdateRequest.php b/app/Http/Requests/Acars/UpdateRequest.php index a26f50bd..945684b2 100644 --- a/app/Http/Requests/Acars/UpdateRequest.php +++ b/app/Http/Requests/Acars/UpdateRequest.php @@ -19,7 +19,7 @@ class UpdateRequest extends FormRequest $rules = [ 'airline_id' => 'nullable|exists:airlines,id', 'aircraft_id' => 'nullable|exists:aircraft,id', - 'flight_id' => 'sometimes|exists:flights,id', + 'flight_id' => 'sometimes|nullable|exists:flights,id', 'flight_number' => 'sometimes|required', 'dpt_airport_id' => 'sometimes|required|size:4', 'arr_airport_id' => 'sometimes|required|size:4',