public function withModel(IlluminateModel $model)
    {
        // Set model for later validation
        $this->model = $model;

        // Set validation variables based on data
        $this->setValidationVariables($model->toArray());

        return $this;
    }
public function withModel(IlluminateModel $model)
    {
        // Set model for later validation
        $this->model = $model;

        // Set validation variables based on data
        $this->setValidationVariables($model->toArray());

        return $this;
    }
public function withModel ( IlluminateModel $ model ) { // Set model for later validation $ this -> model = $ model ; // Set validation variables based on data $ this -> setValidationVariables ( $ model -> toArray ( ) ) ; return $ this ; }
Set model to validate.

@author Morten Rugaard <moru@nodes.dk>

@param  \Illuminate\Database\Eloquent\Model $model
@return $this
Set model to validate .