buat history and notifikasi

This commit is contained in:
hafifierahman
2021-01-09 19:52:59 +08:00
parent f37591f304
commit 3619c36e22
19 changed files with 2205 additions and 186 deletions
@@ -2,6 +2,11 @@
namespace App\Http\Controllers;
//Events
use App\Events\StatusLiked;
use App\Events\NotifikasiPembayaran;
use App\User;
use App\Cawangan;
@@ -302,6 +307,8 @@ class KhazanahController extends Controller
// 'teller' => $request->teller
])->json();
event(new StatusLiked('Penghantaran kepada Khazanah!'));
return response()->json($createlulus,201);
}
@@ -341,6 +348,8 @@ class KhazanahController extends Controller
$auth_user = Auth::user();
$gadai = Http::put(config('api.url').'/api/gadai/serah_marhun/khazanah/'. $auth_user['cawangan'] .'/' . $request->norujukan_barcode)->json();
event(new NotifikasiPembayaran('TellerkepadaKhazanah'));
return redirect()->route('khazanah.gadaian');
}