public function update(CategoriesRequest $request, Category $category)
    {
        $category->update(
            $request->all()
        );

        return redirect()->route('categories.edit', $category)->with(
            'status', trans('globals.success_text')
        );
    }
public function update(CategoriesRequest $request, Category $category)
    {
        $category->update(
            $request->all()
        );

        return redirect()->route('categories.edit', $category)->with(
            'status', trans('globals.success_text')
        );
    }
public function update ( CategoriesRequest $ request , Category $ category ) { $ category -> update ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'categories.edit' , $ category ) -> with ( 'status' , trans ( 'globals.success_text' ) ) ; }
Updates the given category.

@param  CategoriesRequest $request
@param  Category $category

@return void
Updates the given category .