app/Http/Controllers/CategoryController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\Category  $category
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Category $category)
    {
        $data =[
            'category'=>$category
        ];
        return view('DashboardPage.Category.index',compact('data'));
    }
public function edit ( Category $ category ) { $ data = [ 'category' => $ category ] ; return view ( 'DashboardPage.Category.index' , compact ( 'data' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .
//