We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d3ac0f commit 7f1d343Copy full SHA for 7f1d343
1 file changed
src/FilamentMails.php
@@ -14,12 +14,12 @@ class FilamentMails
14
15
public static function setPath(?string $path = null): void
16
{
17
- static::$path = $path ?? filament()->getDefaultPanel()->getPath();
+ static::$path = $path ?? filament()->getPanel()?->getPath() ?? filament()->getDefaultPanel()->getPath();
18
}
19
20
public static function setName(?string $name = null): void
21
22
- static::$name = $name ?? 'filament.' . filament()->getDefaultPanel()->getId() . '.';
+ static::$name = $name ?? 'filament.' . (filament()->getPanel()?->getId() ?? filament()->getDefaultPanel()->getId()) . '.';
23
24
25
public static function routes(?string $path = null, ?string $name = null): void
0 commit comments