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