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(int $product)
    {
        $prod = Product::where('id', $product)->firstOrFail();
        return view('/products/edit', compact('prod'));
    }
public function edit ( int $ product ) { $ prod = Product :: where ( 'id' , $ product ) -> firstOrFail ( ) ; return view ( '/products/edit' , compact ( 'prod' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .