Skip to content

Package not putting files separately in Azure storage container for each tenant #3

@hamees-allshore

Description

@hamees-allshore

I have installed this package in a web application that is running of Azure with Azure Storage containers.
The app is storing all files on the root of the container while it should have created a separate folder for each tenant and then have placed files in them.

I have configured everything correctly but seems that the storage adapter is not considering the suffix parameter set by the multi-tenancy for laravel package.

config/filesystems.php

// ...
'azure' => [
            'driver' => 'azure-storage-blob',
            'connection_string' => env('AZURE_STORAGE_CONNECTION_STRING'),
            'container' => env('AZURE_STORAGE_CONTAINER'),
        ],
// ...

config/tenancy.php

// ...
'filesystem' => [
        'suffix_base' => 'tenant',
        'disks' => [
            'local',
            'public',
            'azure',
        ],
// ...

Reference: #https://tenancyforlaravel.com/docs/v3/tenancy-bootstrappers/#filesystem-tenancy-boostrapper

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions