NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #318 most downloaded on Packagist
The Laravel magic applied to joins.
Latest stable
4.3.6
Last release 29 days ago
24 Oct 2026
Ships fairly regularly
a new release about every 5 weeks
Nearly every release is documented
notes for 58 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
82 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
Added the ability to apply global scopes from models.
Added the ability to apply global scopes from models.
Nothing published for this version
Improvements in the checks for already joined relationships. #51
Improvements in the checks for already joined relationships. #51
Add ability to chain scopes - https://github.com/kirschbaum-development/eloquent-power-joins/pull/50. Thanks @masterix21
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add ability to chain scopes - https://github.com/kirschbaum-development/eloquent-power-joins/pull/50. Thanks @masterix21
Added the ability to pass raw values for the order by functions. Closes #44
Added the ability to pass raw values for the order by functions. Closes #44
Nothing published for this version
Nothing published for this version
Make sure join cache is cleared between queries
Make sure join cache is cleared between queries
Fixed the ability to pass nested closures in join callbacks when using aliases;
Fixed nested conditions in relationship definitions;
Fixed Issue https://github.com/kirschbaum-development/eloquent-power-joins/issues/26.
Fixed Issue https://github.com/kirschbaum-development/eloquent-power-joins/issues/26.
Added the ability to include trashed results by using the join callback:
Added the ability to include trashed results by using the join callback:
UserProfile::joinRelationship('users', function ($join) {
$join->withTrashed();
});
```php
UserProfile::joinRelationship('users', function ($join) {
$join->onlyTrashed();
});
Nothing published for this version
Nothing published for this version
A new trait that needs to be used in models;
### Bugfixes #12 - orderByUsingJoins does not get the correct latest relationship model for nested relationships
#12 - orderByUsingJoins does not get the correct latest relationship model for nested relationships
This release implemented the ability to use table aliases in the joins being made. It can be used in two ways.
This release implemented the ability to use table aliases in the joins being made. It can be used in two ways.
By calling the joinRelationshipUsingAlias method.
Post::joinRelationshipUsingAlias('category.parent')->get();
This generates the following query:
SELECT "posts".* FROM "posts"
INNER JOIN "categories" AS "40071de3fbcf4e9399e166813abb7718" ON "posts"."category_id" = "40071de3fbcf4e9399e166813abb7718"."id"
INNER JOIN "categories" AS "ccecda2ab44b29ec904f7bdea7e5aa2e" ON "40071de3fbcf4e9399e166813abb7718"."parent_id" = "ccecda2ab44b29ec904f7bdea7e5aa2e"."id"
You can also manually specify the table alias you want to use in the join callbacks.
Post::joinRelationship('category.parent', [
'parent' => function ($join) {
$join->as('category_parent');
},
])->get();
This generates the following query:
SELECT "posts".* FROM "posts"
INNER JOIN "categories" ON "posts"."category_id" = "categories"."id"
INNER JOIN "categories" AS "category_parent" ON "categories"."parent_id" = "category_parent"."id"
- Initial release;
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.