Skip to content

Commit

Permalink
getPanel() → getCurrentPanel()
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Feb 25, 2025
1 parent ea3d988 commit 1da1071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FilamentMails.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ class FilamentMails

public static function setPath(?string $path = null): void
{
static::$path = $path ?? filament()->getPanel()?->getPath() ?? filament()->getDefaultPanel()->getPath();
static::$path = $path ?? filament()->getCurrentPanel()?->getPath() ?? filament()->getDefaultPanel()->getPath();
}

public static function setName(?string $name = null): void
{
static::$name = $name ?? 'filament.' . (filament()->getPanel()?->getId() ?? filament()->getDefaultPanel()->getId()) . '.';
static::$name = $name ?? 'filament.' . (filament()->getCurrentPanel()?->getId() ?? filament()->getDefaultPanel()->getId()) . '.';
}

public static function routes(?string $path = null, ?string $name = null): void
Expand Down

0 comments on commit 1da1071

Please sign in to comment.