// below code will pass the data to view page using compact.pagecount is passing as an array
1 2 3 |
return view('myfolder.my_list',['pagecount' => $pagecount],compact('mydatalist')); // this will work return view('myfolder.my_list',['pagecount' => $pagecount],compact('mydatalist'),compact('mydatalisttwo')); // this will not work |