Make the fuel used optional (#512)

This commit is contained in:
Nabeel S 2020-01-22 10:33:10 -05:00 committed by GitHub
parent 2415caab54
commit df832088d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,8 +126,8 @@ class Pirep extends Model
'flight_number' => 'required', 'flight_number' => 'required',
'dpt_airport_id' => 'required', 'dpt_airport_id' => 'required',
'arr_airport_id' => 'required', 'arr_airport_id' => 'required',
'block_fuel' => 'required|numeric', 'block_fuel' => 'sometimes|numeric',
'fuel_used' => 'required|numeric', 'fuel_used' => 'sometimes|numeric',
'level' => 'nullable|numeric', 'level' => 'nullable|numeric',
'notes' => 'nullable', 'notes' => 'nullable',
'route' => 'nullable', 'route' => 'nullable',