app/Http/Controllers/ItemController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Item  $item
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Item $item)
    {
        $categories = Category::all();
        return view('admin.item.edit',compact('item','categories'));
    }
public function edit ( Item $ item ) { $ categories = Category :: all ( ) ; return view ( 'admin.item.edit' , compact ( 'item' , 'categories' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .