sql select subquery return multiple values in array using laravel model code example
Example 1: laravel select record with several conditions
public function index(){ $users = User::select('*') ->where('active', '=', 1) ->where('is_ban', '=', 0) ->get(); dd($users);}
Example 2: laravel select record with several conditions
public function index(){ $users = User::select('*') ->where([ ['active', '=', 1], ['is_ban', '=', 0] ]) ->get(); dd($users);}