Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query_1 = User::select('id','name');
- $query_2 = admin::select('user_id','id');
- $union = $query_2->union($query_1);
- 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