generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #327 from phh/patch-1
Use BreezyCore::slug() instead of hardcoded my-profile
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,11 @@ public function handle(Request $request, Closure $next): Response | |
filament()->auth()->check() && | ||
! str($request->route()->getName())->contains('logout') | ||
) { | ||
/** @var BreezyCore $breezy */ | ||
$breezy = filament('filament-breezy'); | ||
Check failure on line 23 in src/Middleware/MustTwoFactor.php GitHub Actions / phpstan
Check failure on line 23 in src/Middleware/MustTwoFactor.php GitHub Actions / phpstan
|
||
$myProfileRouteName = 'filament.'.filament()->getCurrentPanel()->getId().'.pages.my-profile'; | ||
|
||
$myProfileRouteName = 'filament.'.filament()->getCurrentPanel()->getId().'.pages.'.$breezy->slug(); | ||
Check failure on line 25 in src/Middleware/MustTwoFactor.php GitHub Actions / phpstan
|
||
|
||
$myProfileRouteParameters = []; | ||
|
||
if (filament()->hasTenancy()) { | ||
|