src/Eloquent/BaseRepository.php
public function newModel()
    {
        $model = app()->make($this->modelClass);

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

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

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

        return $model;
    }
public function newModel ( ) { $ model = app ( ) -> make ( $ this -> modelClass ) ; if ( ! $ model instanceof Model ) { throw new RepositoryException ( "Class {$this->modelClass} must be an instance of Illuminate\\Database\\Eloquent\\Model" ) ; } return $ model ; }
Make a new empty model

@return Model
@throws \Exception
Make a new empty model