public function ignoreModel($model, $idColumn = null)
    {
        $this->idColumn = $idColumn ?? $model->getKeyName();
        $this->ignore = $model->{$this->idColumn};

        return $this;
    }
public function ignoreModel($model, $idColumn = null)
    {
        $this->idColumn = $idColumn ?? $model->getKeyName();
        $this->ignore = $model->{$this->idColumn};

        return $this;
    }
public function ignoreModel ( $ model , $ idColumn = null ) { $ this -> idColumn = $ idColumn ?? $ model -> getKeyName ( ) ; $ this -> ignore = $ model -> { $ this -> idColumn } ; return $ this ; }
Ignore the given model during the unique check.

@param  \Illuminate\Database\Eloquent\Model  $model
@param  string|null  $idColumn
@return $this
Ignore the given model during the unique check .