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($id)
    {
       $product = Product::find($id);
       $product->delete();
       return redirect()->back()->with('stutus','Product deleted successfully');
    }
public function destroy ( $ id ) { $ product = Product :: find ( $ id ) ; $ product -> delete ( ) ; return redirect ( ) -> back ( ) -> with ( 'stutus' , 'Product deleted successfully' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .
//