php - Laravel 8 UniSharp File Manager 3 change base directory from app/storage to app/public

I am struggling to change the base directory to upload images to be inapp/public
instead of the defaultapp/storage
.
There is nobase_directory
in the config/lfm.php file.
I also see that the lfm.php file is in the unisharp/laravel-filemanager/src/config folder. Why is this config file in 2 places?
The reason I need to change to have this structure is that I already have hundreds of images inpublic/images
and files inpublic/files
and I want to keep these links in the existing pages working.
So what do I have to do to change that?
Answer
Solution:
Maybe if you change inconfig/lfm.php
, line with'disk' => 'lfm_local'
, resolve your problem.
lfm_local
is localized in thefile config/filesystems.php
, there you see some options of disks, to use atlfm.php
.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: you must enable the openssl extension in your php.ini to load information from https://repo.packagist.org
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.