app/Http/Controllers/CategoryController.php
/**
     * Get the scrren with the form for updating a category.
     * 
     * @param Request $request
     * @param Category $category
     * @return View
     */
Get the scrren with the form for updating a category.

@param Request $request
@param Category $category
@return View
Get the scrren with the form for updating a category . @param Request $request @param Category $category @return View
public function edit(Request $request, Category $category)
    {
        $max = Category::max('position');
        return view('category.update', [
                                        'category' => $category,
                                        'max' => $max
                                    ]);
    }
public function edit ( Request $ request , Category $ category ) { $ max = Category :: max ( 'position' ) ; return view ( 'category.update' , [ 'category' => $ category , 'max' => $ max ] ) ; }
Get the scrren with the form for updating a category.
Get the scrren with the form for updating a category .