/** * Update the specified resource in storage. * * @param $user * @return Response */ public function update(Request $request, Vehicle $vehicle) { $user = User::find($request->user_id); $vehicle->update($request->only(['title', 'type', 'sat_number', 'name', 'marker_color'])); $user->update($request->only(['name', 'username', 'email', 'mobile_number', 'organisation', 'operation_areas', 'confirmed'])); }