Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Auto Morph Map

Laravel Auto Morph Map Laravel Package

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.

View on GitHub
Deep Wiki
Context7

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.

  • Automatic discovery of morphable models across your app
  • Configurable aliases with sensible defaults from class names
  • Artisan command to regenerate and cache the map
  • Cached output to avoid runtime scanning overhead
  • Decoupled storage from class names for safer refactors
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource