public function excluding(Collection $products)
	{
		$ids = $products->pluck('id');

		if ($this->excluding->count() == 0) {
			$this->excluding = $ids;
		} else {
			foreach ($ids as $id) {
				$this->excluding->push($id);
			}
		}

		return $this;
	}
public function excluding(Collection $products)
	{
		$ids = $products->pluck('id');

		if ($this->excluding->count() == 0) {
			$this->excluding = $ids;
		} else {
			foreach ($ids as $id) {
				$this->excluding->push($id);
			}
		}

		return $this;
	}
public function excluding ( Collection $ products ) { $ ids = $ products -> pluck ( 'id' ) ; if ( $ this -> excluding -> count ( ) == 0 ) { $ this -> excluding = $ ids ; } else { foreach ( $ ids as $ id ) { $ this -> excluding -> push ( $ id ) ; } } return $ this ; }
Builds the excluding list based on the given collection.

@param Collection $products

@return void
Builds the excluding list based on the given collection .