Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Lazy Belongs To Many

Lazy Belongs To Many Laravel Package

inani/lazy-belongs-to-many

Laravel package that adds a lazy-loading belongsToMany relationship, letting you defer large many-to-many queries until the collection is actually accessed. Keeps models light while still supporting pivot data, eager loading, and standard relationship methods.

View on GitHub
Deep Wiki
Context7

inani/lazy-belongs-to-many adds lazy, streamed access to Laravel’s belongsToMany relationships. Instead of loading every related model at once, it lets you iterate over large many-to-many sets while preserving pivot data and Eloquent constraints—keeping memory usage low.

  • Provides a dedicated lazy belongsToMany relation
  • Simple trait-based model integration
  • Supports pivot columns and query constraints
  • Ideal for large datasets and memory-sensitive jobs
  • Drop-in usage with existing Eloquent models
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console