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($id)
    {  
        return view('backend.category.edit',[
            'category' => Category::findOrFail($id),
        ]);
    }
public function edit ( $ id ) { return view ( 'backend.category.edit' , [ 'category' => Category :: findOrFail ( $ id ) , ] ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .