Last active
July 16, 2018 04:37
-
-
Save tisuchi/6f850f2ce61b9995978ab09073c2b4ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
User::where('user_id','=', $this->id) | |
->where('some condition here') | |
->join('items', 'items.user_id', '=', 'users.id') | |
->with('items') | |
->orderBy('items.type') | |
->get(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment