Add ClientMessage to payment controller
This commit is contained in:
parent
4738c077d1
commit
658414c979
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue