partial update fix redirect and add note in public, quick and pbg data

This commit is contained in:
arifal
2025-09-10 17:24:44 +07:00
parent 5c4cebd2b3
commit beb7d935c9
155 changed files with 161 additions and 91 deletions

View File

@@ -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);
}
/**