/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $model = Tour::findOrFail($id); $model->tourAuthor; $model->tourCategory; $model->tourComment; $model->tourComment->tourUser; return $model; }
/** * * @param int $tourId * @return $tour */ public function findTour($tourId) { return Tour::findOrFail($tourId); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $tour = Tour::findOrFail($id); $tour->delete(); }