/** * Remove the specified reservation from storage. * * @see \App\Http\Controllers\ReservationController::destroy() * @param int $id * @return \Illuminate\Http\Response * @internal param Request $request */ public function destroy($id) { try { extract(parent::destroy($id)); } catch (ModelNotFoundException $e) { return response()->json(['error' => 'not_found', 'error_description' => "The reservation with the id '{$id}' doesn't exist."], 404); } return response(null, 204); }
/** * Remove the specified reservation from storage. * * @see \App\Http\Controllers\ReservationController::destroy() * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { extract(parent::destroy($id)); return back(); }