/** * Remove the specified resource from storage. * * @param Request $request * @param VoteSite $vote * @return \Illuminate\Http\Response */ public function destroy(Request $request, VoteSite $vote) { if ($request->ajax()) { $vote->delete(); } }