Hi,
I'm using stored procedure in my project, Normally we can paginate query results with paginate() function but cannot do it in stored procedure. While am using this function getting
"Call to a member function paginate() on a non-object"
this error and my code is given below
$allUsers = DB::select('CALL choose_connections(?)', array(101))->paginate(3);
When am executing this am getting this error "Call to a member function paginate() on a non-object"
if i execute
$allUsers = DB::select('CALL choose_connections(?)', array(101))
Well you need to have a query builder to use paginate, so thi means you need to update your query to always return a query builder and then call paginate! You don't have a query builder right now