public function getUnvote(Quote $quote) { $vuser = $quote->voted()->whereUserId(Auth::user()->id)->first(); if ($vuser) { $quote->voted()->detach(Auth::user()); $quote->updateVoteConfidence(); return Redirect::route('quote', array($quote->id))->withErrors('You have removed your vote!'); } }