Bosnadev\Repositories\Eloquent\Repository::setModel PHP Method

setModel() public method

Set Eloquent Model to instantiate
public setModel ( $eloquentModel ) : Model
$eloquentModel
return Illuminate\Database\Eloquent\Model
    public function setModel($eloquentModel)
    {
        $this->newModel = $this->app->make($eloquentModel);
        if (!$this->newModel instanceof Model) {
            throw new RepositoryException("Class {$this->newModel} must be an instance of Illuminate\\Database\\Eloquent\\Model");
        }
        return $this->model = $this->newModel;
    }