partial update fix redirect and add note in public, quick and pbg data
This commit is contained in:
@@ -54,7 +54,10 @@ class AuthenticatedSessionController extends Controller
|
||||
session(['login_timestamp' => now()->timestamp]);
|
||||
session(['user_id' => $user->id]);
|
||||
|
||||
return redirect()->intended(RouteServiceProvider::HOME);
|
||||
// Append menu_id dynamically to HOME
|
||||
$menuId = optional(\App\Models\Menu::where('name', 'Dashboard Pimpinan SIMBG')->first())->id;
|
||||
$home = RouteServiceProvider::HOME . ($menuId ? ('?menu_id=' . $menuId) : '');
|
||||
return redirect()->intended($home);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user