stancl/laravel-hasmanywithinverse
Laravel's hasMany leaves the inverse relation unset, so accessing the parent from each child triggers extra queries. This package adds hasManyWithinverse, which hydrates the inverse automatically—so $child->parent is already loaded without N+1.
|
Person
|
Packages
|
Contributions
|
Followers
|
|
|---|---|---|---|---|
|
stancl
@stancl |
81 | 2,288 | 734 |
View on GitHub
|
|
Artur
@mr4rtur |
1 | 6 | 0 |
View on GitHub
|
|
szepeviktor
@szepeviktor |
427 | 3,413 | 796 |
View on GitHub
|
|
lukinovec
@lukinovec |
11 | 159 | 1 |
View on GitHub
|
|
Abrar Ahmad
@abrardev99 |
14 | 68 | 0 |
View on GitHub
|
How can I help you explore Laravel packages today?