app/Http/Controllers/ProductController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\ProductModel  $productModel
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(ProductModel $productModel)
    {
        ProductModel::destroy($productModel->id);
        return redirect('/product')->with('status_hapus', 'data berhasil dihapus');
    }
public function destroy ( ProductModel $ productModel ) { ProductModel :: destroy ( $ productModel -> id ) ; return redirect ( '/product' ) -> with ( 'status_hapus' , 'data berhasil dihapus' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .