“join multiple query in laravel” Coderfunda Code Answer’s
“join multiple query in laravel” Code Answer’s
join multiple query in laravel
1
Programing Coderfunda January 25, 2022 Laravel, php No comments
$users = User::join('posts', 'posts.user_id', '=', 'users.id')
->where('users.status', 'active')
->where('posts.status','active')
->get(['users.*', 'posts.descrption']);
$select->joinSub(
$selectSubQry,
'ag',
'ag.id',
'=',
'agp.userId'
);
0 comments:
Post a Comment
Thanks