/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function CreateAction() { $this->blog_post = Blog_post::select('id', 'title')->orderBy('title', 'asc')->get(); return view('admin.blog_category.blog_category_add', ['blog_posts' => $this->blog_post]); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function IndexAction() { $this->blog_post = Blog_post::select('id', 'title', 'image', 'status')->paginate(5); return view('admin.blog_post.blog_post_list', ['blog_posts' => $this->blog_post]); }