/** * 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')); }
public function get_index() { $blog_posts = BlogPost::all(); return View::make('blog.index')->with('blog_posts', $blog_posts); }