omaximus/laravel-pivot-polymorph
Polymorphic relations for eloquent.
This package supports fully morph many-to-many relation.
Usage
Include trait \Pisochek\PivotPolymorph\Concerns\HasRelationships to model.
Then like any other relation, write, for example:
return $this->morphsTo('parentName', 'relatedName', 'table');
Any your thoughts and corrections/extensions are much appreciated, functionality is not full yet.
Related Packages
ricktap/qriteria
Automatic url parameter mapping to sort, filter, include and select data in an e...
44
6
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.1 | >=7.1.3| | ~6.0| | ||
| v2.0 | >=7.1.3 | ~6.0 | ||
| v1.0.11 | >=5.6.4 | ^5.0 | ||
| v1.0.10 | >=5.6.4 | ^5.0 | ||
| v1.0.9 | >=5.6.4 | ^5.0,<5.7 | ||
| v1.0.8 | >=5.6.4 | ^5.0,<5.7 | ||
| v1.0.7 | >=5.6.4 | ^5.0,<5.7 | ||
| v1.0.6 | >=5.6.4 | ^5.0,<5.7 | ||
| v1.0.5 | >=5.6.4 | ^5.0,<5.7 | ||
| v1.0.4 | >=5.6.4 | ^5.0,<5.7 | ||
| v1.0.3 | >=5.6.4 | ^5.0,<5.6 | ||
| v1.0.2 | >=5.6.4 | ^5.0,<5.6 | ||
| v1.0.1 | >=5.6.4 | ^5.0,<5.6 | ||
| v1.0.0 | >=5.6.4 | ^5.0,<5.6 |