Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Add default fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
foxws committed Aug 26, 2022
1 parent 3386c85 commit 316b595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Support/BaseDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public function getNamespace(): string
return config('multidomain.namespace').'\\'.$this->getName();
}

public function config(string $path): mixed
public function config(string $key, mixed $default = null): mixed
{
return config("{$this->getLowerName()}.{$path}");
return config("{$this->getLowerName()}.{$key}", $default);
}

public function component(string $name): string
Expand Down

0 comments on commit 316b595

Please sign in to comment.