public function ignore($id, $idColumn = null)
    {
        if ($id instanceof Model) {
            return $this->ignoreModel($id, $idColumn);
        }

        $this->ignore = $id;
        $this->idColumn = $idColumn ?? 'id';

        return $this;
    }
public function ignore($id, $idColumn = null)
    {
        if ($id instanceof Model) {
            return $this->ignoreModel($id, $idColumn);
        }

        $this->ignore = $id;
        $this->idColumn = $idColumn ?? 'id';

        return $this;
    }
public function ignore ( $ id , $ idColumn = null ) { if ( $ id instanceof Model ) { return $ this -> ignoreModel ( $ id , $ idColumn ) ; } $ this -> ignore = $ id ; $ this -> idColumn = $ idColumn ?? 'id' ; return $ this ; }
Ignore the given ID during the unique check.

@param  mixed  $id
@param  string|null  $idColumn
@return $this
Ignore the given ID during the unique check .