I have two query result set for $users and $logged_action and merged both.If I use all() displayed all value.I want to paginate.If I include paginate(10) instead of all.I caught a error
BadMethodCallException in Macroable.php line 74: Method paginate does not exist.
$users = DB::table('request')->select('asset_request.*')->get();
$logged_action= DB::table('status_tracker')->select('status_tracker.*')->get();
$users = $users->merge($logged_action);
$users=$users->all();
return view('layouts.approval_view',['users'=>$users]);