Reusable polymorphic key mapping for Laravel packages. Provides a central registry to manage which primary key column (id, uuid, ulid) each model uses in polymorphic relationships.
Requires PHP 8.4+ and Laravel 12+
composer require cline/morpheus- Migrations - Blueprint macros for polymorphic columns
- Basic Usage - Core registry operations
- Strict Enforcement - Require all models to be mapped
- Config-Based Setup - Configure via config files
- Package Integration - Integrate into your own packages
- Testing - Testing patterns and best practices
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
The MIT License. Please see License File for more information.