omaximus/laravel-pivot-polymorph

There is no license information available for the latest version (v2.1) of this package.

Fully polymorphic pivot relations for laravel eloquent

Installs: 26 322

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 4

Open Issues: 1

pkg:composer/omaximus/laravel-pivot-polymorph

v2.1 2022-03-24 13:46 UTC

README

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.