// Query relationship existence using joins instead of where exists
User::powerJoinHas('posts');
// Order by a related column
User::orderByPowerJoins('profile.city');
// Order by an aggregation on a related table
Post::orderByPowerJoinsCount('comments.id', 'desc');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.