Description
lfm.php:
'middlewares' => ['admin'],
Not working I have to add 'web' in order to work.
Basically I want to modify folder directory as per logged in users such as:
public/upload/USERNAME/Image
public/upload/USERNAME/File
I have created a function under User setStorage() which basically update config file paths:
'lfm.images_dir' => 'public/upload/'.$this->username.'/image/',
'lfm.images_url' => '/upload/'.$this->username.'/image/',
and calling the function under MultiUser middleware
But problem is directories are already created before reaching to MultiUser middleware so when I use the file manager it uses the default config directory which is photos.
Please let me know how can I resolve this issue?
I need to modify the directory structure as per logged in user.
The same logic is working perfectly for my own 'admin' image upload by calling the user->setStorage() under admin middleware