array (size=1)
'objects' =>
object(Illuminate\Pagination\Paginator)[232]
protected 'factory' =>
object(Illuminate\Pagination\Factory)[229]
protected 'request' =>
object(Illuminate\Http\Request)[3]
...
protected 'view' =>
object(Illuminate\View\Factory)[136]
...
protected 'trans' =>
object(Illuminate\Translation\Translator)[150]
...
protected 'viewName' => string 'pagination::slider-3' (length=20)
protected 'currentPage' => null
protected 'locale' => null
protected 'baseUrl' => null
protected 'pageName' => string 'page' (length=4)
protected 'items' =>
array (size=1)
0 =>
object(Cartalyst\Sentry\Users\Eloquent\User)[231]
...
protected 'total' => int 1
protected 'hasMore' => null
protected 'perPage' => int 10
protected 'currentPage' => int 1
protected 'lastPage' => int 1
protected 'from' => int 1
protected 'to' => int 1
protected 'query' =>
array (size=0)
empty
protected 'fragment' => null
This is a var_dump() of $objects
Fixed it! Finally, I just needed to loose the compact() in my BaseAdminController.php index() method
It now returns:
this->layout->content = View::make($this->namespace . '::admin.index')
->with('objects', compact('objects'));
Sorry, I can't seem to edit posts at the moment. It was meant to be:
Fixed it! Finally, I just needed to loose the compact() in my BaseAdminController.php index() method
It now returns:
this->layout->content = View::make($this->namespace . '::admin.index')
->withObjects($objects);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community