addded notification

This commit is contained in:
hafifierahman
2024-11-04 01:18:29 +08:00
parent 8ec68e8913
commit f3020b33c5
11 changed files with 204 additions and 136 deletions
@@ -0,0 +1,20 @@
<?php
namespace App\Http\Controllers;
use App\Events\Teller\NotifyDeposit;
use Illuminate\Support\Facades\Auth;
class EventTriggerController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function TellerCash(){
event(new NotifyDeposit("pendahuluan",Auth::user()->cawangan,Auth::user()->name));
}
}