UniSharp / laravel-filemanager

Media gallery with CKEditor, TinyMCE and Summernote support. Built on Laravel file system.
https://unisharp.github.io/laravel-filemanager/
MIT License
2.09k stars 720 forks source link

Dynamic Folder Name Change for Multi Tenancy #1188

Closed mrtsglk closed 1 year ago

mrtsglk commented 1 year ago

I can change the folder names via the lfm.php file. But how can I dynamically change this folder name?

What I want to do:

folder_name = tenant('id').'/photos';

But when I call the tenant id in the config file, it is empty. The package I am using is tenancyforlaravel.com

mrtsglk commented 1 year ago

I added TenancyInitialized in listener.