app/Http/Controllers/Admin/BlogCategoryController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\BlogCategory  $blogcategory
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(UpdateBlogCategoryRequest $request, BlogCategory $blogcategory)
    {
        $blogcategory->category_title = $request->category_title;
        $blogcategory->category_description = $request->category_description;
        $blogcategory->category_seo_title = $request->category_seo_title;
        $blogcategory->category_seo_keyword = $request->category_seo_keyword;
        $blogcategory->category_seo_description = $request->category_seo_description;
        $blogcategory->save();
        return redirect(route('admin.blogcategory.index'))->with('success','Blog Category successfully updated.');
    }
public function update ( UpdateBlogCategoryRequest $ request , BlogCategory $ blogcategory ) { $ blogcategory -> category_title = $ request -> category_title ; $ blogcategory -> category_description = $ request -> category_description ; $ blogcategory -> category_seo_title = $ request -> category_seo_title ; $ blogcategory -> category_seo_keyword = $ request -> category_seo_keyword ; $ blogcategory -> category_seo_description = $ request -> category_seo_description ; $ blogcategory -> save ( ) ; return redirect ( route ( 'admin.blogcategory.index' ) ) -> with ( 'success' , 'Blog Category successfully updated.' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .