Last active
July 16, 2018 04:38
-
-
Save tisuchi/b7a95224aeb4b90aba90413947c0a992 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') | |
->orderBy('items.type') | |
->get(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment