From df832088d59f953566d99b0a882784d1794f8367 Mon Sep 17 00:00:00 2001 From: Nabeel S Date: Wed, 22 Jan 2020 10:33:10 -0500 Subject: [PATCH] Make the fuel used optional (#512) --- app/Models/Pirep.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Pirep.php b/app/Models/Pirep.php index 63ccd2ac..90d013d3 100644 --- a/app/Models/Pirep.php +++ b/app/Models/Pirep.php @@ -126,8 +126,8 @@ class Pirep extends Model 'flight_number' => 'required', 'dpt_airport_id' => 'required', 'arr_airport_id' => 'required', - 'block_fuel' => 'required|numeric', - 'fuel_used' => 'required|numeric', + 'block_fuel' => 'sometimes|numeric', + 'fuel_used' => 'sometimes|numeric', 'level' => 'nullable|numeric', 'notes' => 'nullable', 'route' => 'nullable',