mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Merge remote-tracking branch 'origin/feature/global-search-suffix' into feature/global-search-suffix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user