Skip to content

omaximus/laravel-pivot-polymorph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Provide functionality for pivot polymorph relation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages