Support the ongoing development of Laravel.io →
Database Eloquent Architecture
Last updated 1 year ago.
0

dump the $user and post here

Last updated 1 year ago.
0
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

Last updated 1 year ago.
0

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'));
Last updated 1 year ago.
0

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);
Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.