I added the following arrays into all_updates[] as follows :
$all_updates[] = $all_update_in;
$all_updates[] = $all_update_out;
$all_updates[] = $all_update_oth;
The $all_updates output :
array(3) { [0]=> array(0) { } [1]=> array(0) { } [2]=> array(3) { [0]=> object(stdClass)#365 (21) { ["id"]=> int(84) ["created_at"]=> string(19) "2019-10-31 12:24:28" ["updated_at"]=> string(19) "2019-10-31 12:24:28" ["title"]=> string(14) "the tag newest" ["body"]=> string(20) "the tag newest ANSWER" } } }
I'm trying to paginate the final array as follows :
$Final_array= $all_updates->paginate(15);
I'm receiving the following error :
Call to a member function paginate() on a non-object
paginate()function is specific to query builder objects, you can't call it on arrays$all_update_in,$all_update_out,$all_update_othafter you separate them.