Exemplo n.º 1
0
 /**
  * Get the main admin view.
  *
  * @return \Illuminate\View\View
  */
 public function index()
 {
     return View::make('cabinet::admin.index')->with('posts', $this->posts->all())->with('users', $this->user->all())->with('user', \Auth::user())->with('locale', $this->loadLanguage());
 }
Exemplo n.º 2
0
 /**
  * Get the main admin view.
  */
 public function index()
 {
     $posts = $this->post->all()->paginate(25);
     return View::make('cabinet::admin.posts.list', array('posts' => $posts));
 }