Allow nullable on flight_id

This commit is contained in:
Nabeel Shahzad 2019-12-03 15:52:00 -05:00
parent 64a04f70a3
commit cc8662445c

View File

@ -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',