dashboard
This commit is contained in:
@@ -118,7 +118,7 @@ class LoginController extends Controller
|
||||
return response()->json([
|
||||
'success' => false,
|
||||
'message' => 'Invalid Email or Password',
|
||||
], 401);
|
||||
], 200);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Twilio\Rest\Client;
|
||||
use App\Komoditi;
|
||||
use App\Events\Dashboard\PelangganNotify;
|
||||
|
||||
use Carbon\Carbon;
|
||||
|
||||
@@ -204,6 +205,7 @@ class CustomersController extends Controller
|
||||
]);
|
||||
|
||||
Session::put('customer_info',$customer_info);
|
||||
event(new PelangganNotify('lulus',$auth_user['cawangan']));
|
||||
return redirect()->route('customer_info')->with( ['customer_info' => $customer_info] );
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ namespace App\Http\Controllers;
|
||||
use App\Events\OperasiNotice;
|
||||
use App\Events\StatusLiked;
|
||||
use App\Events\NotifikasiKelulusan;
|
||||
use App\Events\Dashboard\KomoditiNotify;
|
||||
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Http\Request;
|
||||
@@ -234,4 +235,10 @@ class OperasiController extends Controller
|
||||
return view('operasi.rekodtelahlulus',compact('cawangan_info','api_url','arraykelulusan'));
|
||||
|
||||
}
|
||||
|
||||
public function notifyKomoditi()
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
event(new KomoditiNotify('lulus',$auth_user['cawangan']));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user