Allow nullable on flight_id
This commit is contained in:
parent
64a04f70a3
commit
cc8662445c
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user