Add ClientMessage to payment controller
continuous-integration/drone/tag Build was killed Details
continuous-integration/drone/push Build is failing Details

This commit is contained in:
philipp lang 2023-08-15 00:05:45 +02:00
parent 4738c077d1
commit 658414c979
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@
namespace App\Payment;
use App\Http\Controllers\Controller;
use App\Lib\Events\ClientMessage;
use App\Member\Member;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
@ -17,6 +18,8 @@ class PaymentController extends Controller
'status_id' => 'required|exists:statuses,id',
]));
ClientMessage::make('Zahlung erstellt.')->shouldReload()->dispatch();
return redirect()->back();
}
@ -28,6 +31,8 @@ class PaymentController extends Controller
'status_id' => 'required|exists:statuses,id',
]));
ClientMessage::make('Zahlung aktualisiert.')->shouldReload()->dispatch();
return redirect()->back();
}
@ -35,6 +40,8 @@ class PaymentController extends Controller
{
$payment->delete();
ClientMessage::make('Zahlung gelöscht.')->shouldReload()->dispatch();
return redirect()->back();
}
}