Allow flight_id to be nullable

This commit is contained in:
Nabeel Shahzad 2020-10-27 21:47:19 -04:00
parent dc7efc981c
commit a58237b04b

View File

@ -11,7 +11,7 @@ class PrefileRequest extends FormRequest
return [ return [
'airline_id' => 'required|exists:airlines,id', 'airline_id' => 'required|exists:airlines,id',
'aircraft_id' => 'required|exists:aircraft,id', 'aircraft_id' => 'required|exists:aircraft,id',
'flight_id' => 'sometimes|exists:flights,id', 'flight_id' => 'sometimes|nullable|exists:flights,id',
'flight_number' => 'required', 'flight_number' => 'required',
'dpt_airport_id' => 'required', 'dpt_airport_id' => 'required',
'arr_airport_id' => 'required', 'arr_airport_id' => 'required',