leandrodiogenes/laravel-auto-morph-map
Automatically generates and manages morph maps for Laravel polymorphic relationships, so you no longer maintain a manual morphMap array by hand. Keeps model aliases consistent and simplifies storing polymorphic types in the database.
laravel-auto-morph-map automatically generates and maintains the morph map used by Laravel's polymorphic relationships, so your database stores stable aliases instead of fully-qualified class names. Rather than registering every morphable model by hand, the package discovers them and builds the map for you—keeping polymorphic data portable when classes are renamed or refactored.
How can I help you explore Laravel packages today?