Registry / orm / staudenmeir-eloquent-has-many-deep

staudenmeir-eloquent-has-many-deep

JSON →
library1.22.1phppackagistunverified

Laravel Eloquent HasManyThrough relationships with unlimited levels

composer require staudenmeir/eloquent-has-many-deep
INSTALL
IMPORT
SIG · STAUDENMEIR-ELOQUE
S
staudenmeir-eloquent-has-many-deep
ormphpv1.22.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HasRelationships
use Staudenmeir\EloquentHasManyDeep\HasRelationships;

Use the trait to define deep relationships

use Staudenmeir\EloquentHasManyDeep\HasRelationships; class User extends Model { use HasRelationships; public function posts() { return $this->hasManyDeep(Post::class, [Comment::class, Like::class]); } }
Debug
Known issues
breakingRequires Laravel 5.5+
fix
Upgrade Laravel to 5.5 or higher
affects: <1.0.0
Upgrade
Version history
1.22.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
24
OpenAI (training)
1
Resources
staudenmeir-eloquent-has-many-deep — pip install staudenmeir-eloquent-has-many-deep · libregistry