fumeapp / modeltyper

Generate TypeScript interfaces from Laravel Models
MIT License
136 stars 16 forks source link

Discover Models Outside of app/Models #47

Closed tcampbPPU closed 1 year ago

tcampbPPU commented 1 year ago

Attempts to discover models in the app. Typically, models are just in app/Models/ which is previously where the search was for. This update searches whole project to find all classes or abstract that extend the base Illuminate\Database\Eloquent\Model (which also includes Pivots).

There currently is a flag resolve-abstract to give a better warning to user when the underlying model:show command failed. With this new search, I dont think its still needed but I am not 100% sure