app/Http/Controllers/PaymentController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Payment  $payment
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Payment $payment)
    {
        Payment::find($payment->id)->delete();
        PaymentType::where('payment_id', $payment->id)->delete();
        return redirect()->back();
    }
public function destroy ( Payment $ payment ) { Payment :: find ( $ payment -> id ) -> delete ( ) ; PaymentType :: where ( 'payment_id' , $ payment -> id ) -> delete ( ) ; return redirect ( ) -> back ( ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .