Extensions:Multiple Trait Subtypes
Jump to navigation
Jump to search
Allows a trait to belong to multiple subtypes. This doesn't add trait subtype restriction and is purely for aesthetic and clarity purposes.
| Description | Allows a trait to belong to multiple subtypes |
|---|---|
| Author(s) | Fulmn |
| Status | stable |
| Github | extension/multiple-trait-subtypes |
| LK Version | 3.0.0 |
| Contains a Migration | |
| Description | Allows a trait to belong to multiple subtypes |
|---|---|
| Author(s) | Fulmn |
| Status | stable |
| Github | extension/multiple-trait-subtypes-v3.1 |
| LK Version | 3.1.0 (develop) |
| Contains a Migration | |
Installation Instructions
Pull the correct branch (please check you're not pulling the wrong version) and run the following commands.
php artisan migratephp artisan convert-trait-subtypephp artisan update-extension-tracker
Compatability Note
If any other installed extension references a trait's subtype, it will be incompatible with this extension without any modifications. Most issues can be resolved by changing any reference to the subtype field on a trait to subtypes and treating the field as a collection of subtypes, rather than a single subtype.