cline/morphism
最新稳定版本:1.3.1
Composer 安装命令:
composer require cline/morphism
包简介
Reusable polymorphic key mapping for Laravel packages
README 文档
README
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.
Requirements
Requires PHP 8.4+ and Laravel 12+
Installation
composer require cline/morphism
Documentation
- 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
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
Credits
License
The MIT License. Please see License File for more information.
统计信息
- 总下载量: 1.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-02