1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 22:14:03 +00:00

This adds support for tenancy aware Storage::url() method

This commit is contained in:
Martin Vlcek 2021-07-19 22:38:33 +00:00
parent 20e1fa1959
commit adf3daa022
7 changed files with 196 additions and 3 deletions

View file

@ -116,6 +116,16 @@ return [
'public' => '%storage_path%/app/public/',
],
/*
* Use this to support Storage url method on local driver disks.
* You should create a symbolic link which points to the public directory using command: artisan tenants:link
* Then you can use tenant aware Storage url: Storage::disk('public')->url('file.jpg');
*/
'url_override' => [
// The array key is local disk (must exist in root_override) and value is public directory (%tenant_id% will be replaced with actual tenant id).
'public' => 'storage-%tenant_id%',
],
/**
* Should storage_path() be suffixed.
*