-
-
Notifications
You must be signed in to change notification settings - Fork 479
Open
Labels
featureNew feature or requestNew feature or request
Description
Bug description
When using scoped disks/driver from a disk that has been defined in the tenancy.filesystem.disks config. The resolved instances of those disks are not forgotten when initializing or reverting the FilesystemTenantBootstrapper and therefore persisting the previous tenant path prefix withing the application lifecycle.
Steps to reproduce
- Define a tenant disk in
config/tenancy.php
return [
// ...
'filesystem' => [
'disks' => ['local'],
],
// ...
];- Define a scoped disk in
config/filesystem.php
return [
// ...
'disks' => [
'tenant-public' => [
'driver' => 'scoped',
'disk' => 'local',
'prefix' => 'app/public',
'visibility' => 'public',
],
],
// ...
];- Create two tenants
- Initialize one tenant and request the path using the Storage facade
- Initialize the second tenant and request the path using the Storage facade
Expected behavior
Disks scoped to a tenant bootstrapped disk should also be forgotten on tenant initialization
Laravel version
11.46.0
stancl/tenancy version
3.9.1
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request