utk dashboard

This commit is contained in:
hafifierahman
2021-10-27 11:13:20 +08:00
parent b1ddf1c2e0
commit 5351f96d22
6 changed files with 140 additions and 0 deletions
@@ -2,6 +2,10 @@
namespace App\Http\Controllers;
//Events
use App\Events\Dashboard\TebusNotify;
use App\Events\Dashboard\KeuntunganNotify;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Auth;
@@ -63,6 +67,8 @@ class PenebusanController extends Controller
if($updatetebus)
{
return response('success');
event(new TebusNotify('lulus',$auth_user['cawangan']));
}else{
return response('fail');
}