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)
    {
        $product->delete();
        return redirect()->route('products.index')
            ->with('success', 'Product deleted successfully');
    }
public function destroy ( Product $ product ) { $ product -> delete ( ) ; return redirect ( ) -> route ( 'products.index' ) -> with ( 'success' , 'Product deleted successfully' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .
//