src/Repository.php
public function newModel($override = null)
    {
        $model = $this->model();

        if ($override) $model = $override;

        $class = '\\'.ltrim($model, '\\');

        return $this->app->make($class);
    }
public function newModel($override = null)
    {
        $model = $this->model();

        if ($override) $model = $override;

        $class = '\\'.ltrim($model, '\\');

        return $this->app->make($class);
    }
public function newModel ( $ override = null ) { $ model = $ this -> model ( ) ; if ( $ override ) $ model = $ override ; $ class = '\\' . ltrim ( $ model , '\\' ) ; return $ this -> app -> make ( $ class ) ; }
Make a new model and attach it to the repository

@param null $override

@return \Illuminate\Database\Eloquent\Model|mixed
Make a new model and attach it to the repository