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