some stan

This commit is contained in:
2025-10-23 00:15:55 +05:00
parent 85df3ec412
commit d8c340028c
10 changed files with 203 additions and 10 deletions

View File

@@ -29,7 +29,10 @@ class EnsureProfileIsFilled
$profilePageClass = EditProfilePage::class; // <-- !! IMPORTANT: Change to your page
$profilePageUrl = $profilePageClass::getUrl();
$panelId = filament()->getCurrentPanel()->getId();
/** @var \Filament\Panel */
$panel = filament()->getCurrentPanel();
$panelId = $panel->getId();
$logoutRouteName = "filament.{$panelId}.auth.logout";
// 4. Check for 'safe' conditions