Merge remote-tracking branch 'origin/feature/global-search-suffix' into feature/global-search-suffix

This commit is contained in:
Lukas Frey
2024-05-02 11:04:42 +02:00
+5 -5
View File
@@ -279,7 +279,7 @@ class FilamentManager
return $this->getCurrentPanel()->getPages();
}
public function getPanel(string $id = null): Panel
public function getPanel(?string $id = null): Panel
{
return app(PanelRegistry::class)->get($id);
}
@@ -375,7 +375,7 @@ class FilamentManager
/**
* @param array<mixed> $parameters
*/
public function getTenantBillingUrl(array $parameters = [], Model $tenant = null): ?string
public function getTenantBillingUrl(array $parameters = [], ?Model $tenant = null): ?string
{
return $this->getCurrentPanel()->getTenantBillingUrl($tenant ?? $this->getTenant(), $parameters);
}
@@ -509,7 +509,7 @@ class FilamentManager
return $tenants;
}
public function getUrl(Model $tenant = null): ?string
public function getUrl(?Model $tenant = null): ?string
{
return $this->getCurrentPanel()->getUrl($tenant);
}
@@ -818,7 +818,7 @@ class FilamentManager
*
* @param string | array<string> $theme
*/
public function registerViteTheme(string | array $theme, string $buildDirectory = null): void
public function registerViteTheme(string | array $theme, ?string $buildDirectory = null): void
{
try {
$this->getDefaultPanel()->viteTheme($theme, $buildDirectory);
@@ -865,7 +865,7 @@ class FilamentManager
return $this->getCurrentPanel()->arePasswordsRevealable();
}
public function getCurrentDomain(string $testingDomain = null): string
public function getCurrentDomain(?string $testingDomain = null): string
{
if (filled($this->currentDomain)) {
return $this->currentDomain;