app/Http/Controllers/ProductController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\Product  $product
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Product $product,$id)
    {
        $product=Product::find($id);
        $product->delete();
        return redirect('/')
        ->with('success','Product Deleted successfully.');
    }
public function destroy ( Product $ product , $ id ) { $ product = Product :: find ( $ id ) ; $ product -> delete ( ) ; return redirect ( '/' ) -> with ( 'success' , 'Product Deleted successfully.' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .