/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $posts = Blog_Post::all(); return view('admin.blog.posts.viewall', ['posts' => $posts]); }