I have a issue related to Laravel5 Manual Pagination. I need to process an array of query builder result and some other arrays and make a pagination for that.
controller.
public function searchCategory($id){
$arr = DB::table('business_businesscatagories')->lists('fk_business_id');
return Paginator::make($arr, count($arr), 2);
}
Namespaces..
use Illuminate\Pagination\LengthAwarePaginator as Paginator;
But I got the error like below..
FatalErrorException in IndexController.php line 122:
Call to undefined method Illuminate\Pagination\LengthAwarePaginator::make()
How can I solve this issue....
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1O48mSq
via IFTTT
Aucun commentaire:
Enregistrer un commentaire