Weave Code
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

Belongs To Through Laravel Package

staudenmeir/belongs-to-through

Add BelongsToThrough relationships to Eloquent: the inverse of HasManyThrough. Define belongs-to chains across unlimited intermediate models, with support for custom keys, table aliases, and soft deletes. Works with Laravel 5+.

View on GitHub
Deep Wiki
Context7
v2.16.4
v2.16.1

What's Changed

New Contributors

Full Changelog: https://github.com/staudenmeir/belongs-to-through/compare/v2.16...v2.16.1

v2.16

What's Changed

  • Support Laravel 11

Full Changelog: https://github.com/staudenmeir/belongs-to-through/compare/v2.15.1...v2.16

v2.15.1

What's Changed

  • Improve IDE helper model hook

Full Changelog: https://github.com/staudenmeir/belongs-to-through/compare/v2.15...v2.15.1

v2.15

What's Changed

  • Add IDE helper model hook

Full Changelog: https://github.com/staudenmeir/belongs-to-through/compare/v2.14...v2.15

v2.14
v2.13
  • Support Laravel 10
v2.12.1
  • Make withTrashed() work with whereHas() (#68)
v2.12
  • Support Laravel 9
v2.11.2
  • Add getThroughParents() method
v2.9.1
  • Support PHP 8
v2.10.1
  • Support PHP 8
v2.11.1
  • Support PHP 8
v2.11
  • Support Laravel 8
v2.10

Supports Laravel 7.

v2.9

Supports Laravel Nova.

v2.8

Supports table aliases.

v2.7

Supports default models.

v2.6

Supports Laravel 6.

v2.5.1

Fixes $withCount.

v2.5

Supports withTrashed() on intermediate models (#35).

v2.4.2
  • Fixes existence queries with prefix.
  • Fixes eager loading and existence queries with SoftDeletes.
  • Supports different database connections.
v2.4.1

Fixes count and existence queries on Laravel 5.0–5.3.

v2.4

Fixes parent model with SoftDeletes (#31).

v2.3.2

Transfers ownership.

v2.3.1

New

  • BelongsToThrough with custom ForeignKey (#25)
v2.3.0

Fixed

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport