Beispiel #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function admin()
 {
     $blog_posts = BlogPost::all();
     return View::make('modules.blog.posts.admin', compact('blog_posts'));
 }
Beispiel #2
0
 public function get_index()
 {
     $blog_posts = BlogPost::all();
     return View::make('blog.index')->with('blog_posts', $blog_posts);
 }