From 1635837cc69d7678e3221b1da9f0bdec3cb2f95d Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Wed, 22 Jan 2020 10:17:51 -0500 Subject: [PATCH] Make the fuel used optional --- 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 63ccd2ac9..90d013d3c 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',