spatie/laravel-morph-map-generator
Automatically generates and keeps Laravel Eloquent morph maps up to date. Models register themselves by implementing getMorphClass(), so you don’t forget to add entries. Optional auto-generation on app boot, configurable for custom model locations.
Automatically generate morph maps in your Laravel application
How can I help you explore Laravel packages today?