I need all users data in one blade, I have table1 and table2.
table1
'id','name','phone','email','status','created_at'
table2
'id','name','mobile','email','status','created_at'
I tried to do this but not an expected result.
$usersTbl = DB::table('table1')->select('id','name','phone','email','status','created_at')->groupBy('phone')->paginate(20);
$ordersTbl = DB::table('table2')->select('id','name','mobile','email','status','created_at')->groupBy('mobile')->paginate(20);
$items=$ordersTbl->merge($usersTbl);
dd($items);exit;