Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. $query_1 = User::select('id','name');
  2. $query_2 = admin::select('user_id','id');
  3. $union = $query_2->union($query_1);
  4.  
  5. i want to give $union an alias so that i could group it by user id and get max admin id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement