app/Http/Controllers/ProductController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\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,$id=null)
    {   
        $editData=Product::find($id);
        return view('edit',compact('editData'));
    }
public function edit ( Product $ product , $ id = null ) { $ editData = Product :: find ( $ id ) ; return view ( 'edit' , compact ( 'editData' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .