src/BaseRepository.php
public function makeModel($storeModel = true)
    {
        $model = $this->app->make($this->model());

        if ( ! $model instanceof Model) {
            throw new RepositoryException("Class {$this->model()} must be an instance of Illuminate\\Database\\Eloquent\\Model");
        }

        if ($storeModel) $this->model = $model;

        return $model;
    }
public function makeModel($storeModel = true)
    {
        $model = $this->app->make($this->model());

        if ( ! $model instanceof Model) {
            throw new RepositoryException("Class {$this->model()} must be an instance of Illuminate\\Database\\Eloquent\\Model");
        }

        if ($storeModel) $this->model = $model;

        return $model;
    }
public function makeModel ( $ storeModel = true ) { $ model = $ this -> app -> make ( $ this -> model ( ) ) ; if ( ! $ model instanceof Model ) { throw new RepositoryException ( "Class {$this->model()} must be an instance of Illuminate\\Database\\Eloquent\\Model" ) ; } if ( $ storeModel ) $ this -> model = $ model ; return $ model ; }
Creates instance of model to start building query for

@param  bool $storeModel  if true, this becomes a fresh $this->model property
@return Model
@throws RepositoryException
Creates instance of model to start building query for