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