/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $comment = DpComment::findOrFail($id); $comment->delete(); return redirect('DP/calendar'); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function restore(Request $request, $id) { $reading = Dp::withTrashed()->where('id', $id)->restore(); DpComment::create($request->all()); return redirect('DP/calendar'); }