1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-06 19:44:03 +00:00

Import InvalidArgumentException

This commit is contained in:
lukinovec 2026-04-14 09:53:25 +02:00
parent 1ae418c8b3
commit 95fd0462e6

View file

@ -11,6 +11,7 @@ use Illuminate\Log\LogManager;
use Illuminate\Support\Arr;
use Stancl\Tenancy\Contracts\TenancyBootstrapper;
use Stancl\Tenancy\Contracts\Tenant;
use InvalidArgumentException;
/**
* This bootstrapper makes it possible to configure tenant-specific logging.
@ -155,7 +156,7 @@ class LogTenancyBootstrapper implements TenancyBootstrapper
$result = $override($tenant, $this->config->get($channelConfigKey));
if (! is_array($result)) {
throw new \InvalidArgumentException("Channel override closure for '{$channel}' must return an array.");
throw new InvalidArgumentException("Channel override closure for '{$channel}' must return an array.");
}
$this->config->set($channelConfigKey, $result);