1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-09-20 15:34:03 +00:00

Skip disks with *empty* url_override in diskUrl()

Previously, we only skipped disks with `null` override. But an override with an empty string is also incorrect, and simply checking if $this->app['config']["tenancy.filesystem.url_override.{$disk}"]) is falsy instead of strictly null takes care of that.
This commit is contained in:
lukinovec 2026-08-20 11:51:03 +02:00 committed by Samuel Stancl
parent 6b27bc5f36
commit 7ecb34f3fe

View file

@ -176,7 +176,7 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
{
$diskConfig = $this->app['config']["filesystems.disks.{$disk}"];
if ($diskConfig['driver'] !== 'local' || $this->app['config']["tenancy.filesystem.url_override.{$disk}"] === null) {
if ($diskConfig['driver'] !== 'local' || ! $this->app['config']["tenancy.filesystem.url_override.{$disk}"]) {
return;
}