public function setModel($model, $foreignKey, $foreignKeyIds)
    {
        $this->model = $model;
        $this->foreignKey = $foreignKey;
        $this->foreignKeyIds = array_wrap($foreignKeyIds);

        $this->message = "Integrity constraint violation [{$model}] where $foreignKey in (".implode(', ', $foreignKeyIds).')';

        return $this;
    }
public function setModel($model, $foreignKey, $foreignKeyIds)
    {
        $this->model = $model;
        $this->foreignKey = $foreignKey;
        $this->foreignKeyIds = array_wrap($foreignKeyIds);

        $this->message = "Integrity constraint violation [{$model}] where $foreignKey in (".implode(', ', $foreignKeyIds).')';

        return $this;
    }
public function setModel ( $ model , $ foreignKey , $ foreignKeyIds ) { $ this -> model = $ model ; $ this -> foreignKey = $ foreignKey ; $ this -> foreignKeyIds = array_wrap ( $ foreignKeyIds ) ; $ this -> message = "Integrity constraint violation [{$model}] where $foreignKey in (" . implode ( ', ' , $ foreignKeyIds ) . ')' ; return $ this ; }
Set the affected Eloquent model and instance foreignKeyIds.

@param string    $model
@param string    $foreignKey
@param int|array $foreignKeyIds

@return $this
Set the affected Eloquent model and instance foreignKeyIds .