DB::table('collections')->where(function ($q) { $q->where('type', '1')->whereIn('user_id', []); })->orWhere(function ($q) { $q->where('type', '2')->whereIn('user_id', []); })->lists('id')
kapv89 said:
DB::table('collections')->where(function ($q) { $q->where('type', '1')->whereIn('user_id', []); })->orWhere(function ($q) { $q->where('type', '2')->whereIn('user_id', []); })->lists('id')
How did you do that? How is function ($q) used? Thanks by the way :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community