Skip to content

Commit 1da1071

Browse files
committed
getPanel() → getCurrentPanel()
1 parent ea3d988 commit 1da1071

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/FilamentMails.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ class FilamentMails
1414

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

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

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

0 commit comments

Comments
 (0)