Jul 25, 2022
15
Level 5
Nested query with OR ?
Controller :
$members = InnerCircleMember::where('circle_id', $id)->where('status', 1)->paginate(10);
$listingsforsale = Listings::where('user_id',$user->id)->where('expiry_date','>' , now())->where('listingtype', 1)->where('status',1)->paginate(10);
I need $listingsforsale where 'user_id' is equal to ( $members->member_id OR $members->admin_id )
wha will be my correct query ? I tried few options but not getting correct result :) Any help ?
Level 102
@FounderStartup Any other questions or can it be marked as solved?
1 like
Please or to participate in this conversation.