beyondcode / laravel-er-diagram-generator

Generate entity relation diagrams from your Laravel model files.
MIT License
1.93k stars 191 forks source link

Use Reflection before invoking the method #48

Open railken opened 5 years ago

railken commented 5 years ago

Invoking directly the method code can lead to unexpected code execution. Before executing the method a great filter could be the use of ReflectionFunctionAbstract::getReturnType. If not mandatory i think it sould be at least configurable.

Anyway, great package!

mpociot commented 5 years ago

Good idea, can you create a PR for this?