public function cancelVote($item)
    {
        $item = $this->checkVoteItem($item);

        return $this->votedItems()->detach((array)$item);
    }
public function cancelVote($item)
    {
        $item = $this->checkVoteItem($item);

        return $this->votedItems()->detach((array)$item);
    }
public function cancelVote ( $ item ) { $ item = $ this -> checkVoteItem ( $ item ) ; return $ this -> votedItems ( ) -> detach ( ( array ) $ item ) ; }
Cancel vote a item or items.

@param int|array|\Illuminate\Database\Eloquent\Model $item

@return int
Cancel vote a item or items .