Download the PHP package pannella/laravel-cti without Composer
On this page you can find all versions of the php package pannella/laravel-cti. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pannella/laravel-cti
More information about pannella/laravel-cti
Files in pannella/laravel-cti
Download pannella/laravel-cti
More information about pannella/laravel-cti
Files in pannella/laravel-cti
Vendor pannella
Package laravel-cti
Short Description A Laravel package for Class Table Inheritance support with automatic subtype casting.
License MIT
Homepage https://github.com/mattpannella/laravel-cti
Package laravel-cti
Short Description A Laravel package for Class Table Inheritance support with automatic subtype casting.
License MIT
Homepage https://github.com/mattpannella/laravel-cti
Please rate this library. Is it a good library?
Informations about the package laravel-cti
Laravel CTI
A Laravel package for implementing Class Table Inheritance pattern with Eloquent models. Unlike Laravel's polymorphic relations which denormalize data, CTI maintains proper database normalization by storing shared attributes in a parent table and subtype-specific attributes in separate tables.
Features
- Automatic model type resolution and instantiation
- Seamless saving/updating across parent and subtype tables
- Efficient bulk loading of subtype data
- Support for Eloquent events and relationships
- Full type safety and referential integrity
Installation
Usage
1. Parent Model
2. Subtype Model
3. Using the Models
Configuration
Required Parent Model Properties
Property | Description |
---|---|
$subtypeMap |
Maps type labels to subtype class names |
$subtypeKey |
Foreign key to type lookup table |
$subtypeLookupTable |
Table containing type definitions |
$subtypeLookupKey |
Primary key in lookup table |
$subtypeLookupLabel |
Type label column in lookup table |
Required Subtype Model Properties
Property | Description |
---|---|
$subtypeTable |
Table containing subtype-specific fields |
$subtypeAttributes |
List of subtype-specific column names |
$ctiParentClass |
FQCN of parent model class |
License
MIT
All versions of laravel-cti with dependencies
PHP Build Version
Package Version
The package pannella/laravel-cti contains the following files
Loading the files please wait ....