Domain\Repositories\BaseRepository::makeModel PHP Method

makeModel() public method

makeModel.
public makeModel ( ) : Model
return Illuminate\Database\Eloquent\Model
    public function makeModel()
    {
        $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");
        }
        return $this->model = $model;
    }