PackageTrack
Sign in Get early access

reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

v9.0.1 1.4M downloads/mo #3151 most downloaded on Packagist tylernathanreed/laravel-relation-joins

What this package is like to depend on

Last release 4 months ago

18 Apr 2026

Release timing varies

gaps range from 9 days to 1.1 years

Some releases are documented

notes for 10 of 33 stable releases

Nothing withdrawn

no release was ever pulled

7 years old

33 releases · first in 2019

3 releases in the last 12 months

see the full history below

Release timeline

32 releases · Aug 2019 to Apr 2026
2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 33
  1. v9.0.1 18 Apr 2026
    Release notes

    Fixes #46

    Assertion errors are no longer being thrown to method_exists usage attempting to detect macros.

    Open source →
  2. v9.0.0 19 Mar 2026
    Release notes

    Laravel 11 reached its end of life support on March 12th, 2026. I have dropped support for Laravel 11 (you can continue using it if you're on the 8.x release), and I've formally added support for Laravel 13.

    Open source →
  3. v8.1.0 19 Mar 2026
    Release notes

    Fixes #42

    An exception is now thrown when a relation in array-syntax goes unused.

    Open source →
  4. v8.0.0 24 Feb 2025
    Release notes

    Laravel 10 reached its end of life support on February 4th, 2025. I have dropped support for Laravel 10 (you can continue using it if you're on the 7.x release), and I've formally added support for Laravel 12.

    Open source →
  5. v7.0.0 13 Dec 2024
    Release notes

    Out with PHP 8.1, in with PHP 8.4

    PHP 8.1 reached its end of active support life over a year ago (security support will continue until EOY 2025). I have dropped support for PHP 8.1 (you can continue using it if you're on the 6.x release), and I've formally added support for PHP 8.4.

    Relation Generics

    There was also a change within Laravel 11 (#51851) which added generics to relations. I've updated the static analysis within this package to support those generics as well. There may be additional changes in the future as people start trying out query scopes within joins, as PHPStan/Larastan should now be able to detect that the join clause is for a specific model.

    Breaking Change

    The dynamic addition of properties has been deprecated in PHP 8.4, so the ability to modify join types via $join->type = 'left' has been removed, as it relied on this feature. You'll have to piece together your joins in another manner now.

    Before:

    User::query()->joinRelation('posts.comments', [
        'comments' => function ($join) { $join->type = 'left'; }
    });

    After:

    User::query()
        ->joinRelation('posts')
        ->leftJoinThroughRelation('posts.comments');
    Open source →
  6. v6.0.1 20 Mar 2024
    Release notes

    This is more of a technical release.

    The PHPStan level has been increased from 6 to 8, and the GitHub actions have been bumped from Node 16 to Node 20.

    These changes help maintain the quality of each release.

    Open source →
  7. v6.0.0 20 Mar 2024
    Release notes

    Laravel 9 reached its end of life earlier this year. I have dropped support for L9, and added official support for Laravel 11.

    With this comes dropping PHP 8.0, with the new minimum of PHP 8.1.

    Open source →
  8. v5.0.0 25 Sep 2023
    Release notes

    Laravel 8 reached its end of life earlier this year. I have dropped support for L8, and added future compatibility for the upcoming Laravel 11.

    With this comes dropping PHP 7.3, with the new minimum of PHP 8.0.

    PHP 8 offers better type-hinting, and overall works better with static analysis tooling. I have incorporated PHP Stan into the pipeline builds moving forward to offer better quality code for everyone.

    Open source →
  9. v4.0.2 25 Sep 2023
    Release notes

    Fixed #25.

    Open source →
  10. v4.0.1 01 Apr 2023
    Release notes

    Fixed aliasing error with morphOne relationship

    Open source →
  11. v4.0.0 01 Apr 2023

    Nothing published for this version

  12. v3.0.0 09 Feb 2022

    Nothing published for this version

  13. v2.4.2 25 Jul 2021

    Nothing published for this version

  14. v2.4.1 25 Jul 2021

    Nothing published for this version

  15. v2.4.0 25 Jul 2021

    Nothing published for this version

  16. v2.3.0 12 Jul 2021

    Nothing published for this version

  17. v2.2.2 09 Jul 2021

    Nothing published for this version

  18. v2.2.1 07 Jul 2021

    Nothing published for this version

  19. v2.2.0 07 Jul 2021

    Nothing published for this version

  20. v2.1.0 03 Jul 2021

    Nothing published for this version

  21. v2.0.1 22 Jun 2021

    Nothing published for this version

  22. v2.0.0 08 Jun 2021

    Nothing published for this version

  23. v1.0.10 08 Jun 2021

    Nothing published for this version

  24. v1.0.9 12 Sep 2020

    Nothing published for this version

  25. v1.0.8 13 Aug 2020

    Nothing published for this version

  26. v1.0.7 no date

    Nothing published for this version

  27. v1.0.6 11 Aug 2020

    Nothing published for this version

  28. v1.0.5 13 Mar 2020

    Nothing published for this version

  29. v1.0.4 01 Nov 2019

    Nothing published for this version

  30. v1.0.3 28 Sep 2019

    Nothing published for this version

  31. v1.0.2 28 Sep 2019

    Nothing published for this version

  32. v1.0.1 10 Aug 2019

    Nothing published for this version

  33. v1.0.0 10 Aug 2019

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive