src/Eloquent/Repository.php
public function setModel(IlluminateEloquentModel $model)
    {
        // Set repository model
        $this->model = $model;

        // Set repository builder from model
        $this->setBuilder($model->newQuery());

        return $this;
    }
public function setModel(IlluminateEloquentModel $model)
    {
        // Set repository model
        $this->model = $model;

        // Set repository builder from model
        $this->setBuilder($model->newQuery());

        return $this;
    }
public function setModel ( IlluminateEloquentModel $ model ) { // Set repository model $ this -> model = $ model ; // Set repository builder from model $ this -> setBuilder ( $ model -> newQuery ( ) ) ; return $ this ; }
Set repository model.

@author Morten Rugaard <moru@nodes.dk>

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