kevincobain2000 / laravel-erd

Automatically generate ERD Diagrams from Model's relations in Laravel
https://medium.com/web-developer/laravel-automatically-generate-interactive-erd-from-eloquent-relations-83fe65440716
138 stars 25 forks source link

Support glob models path #10

Closed koshuang closed 2 years ago

koshuang commented 2 years ago

In case some project has modular folder design for Models, it would be good to support glob models path. But since the config requires namespace, it can not make dynamic path working.

So what I have changed is to dynamically get namespace for each files. And then we can remove the config of namespace.

kevincobain2000 commented 2 years ago

Thanks I ll pull and check and merge by tomorrow

koshuang commented 2 years ago

@kevincobain2000 thank you for the response so quickly :) Any chance to update the composer version as well? I saw it's still v1.1.

kevincobain2000 commented 2 years ago

Thanks for pointing it out Done https://packagist.org/packages/kevincobain2000/laravel-erd