javierldb
1 month ago
321
7
Laravel

File Storage outside Laravel folder

Posted 1 month ago by javierldb

Is it possible to create a local disk to store files, outside the /storage folder within Laravel root directory? In my case I want to store the files on a secondary disk on the same server:

Update: This is an entry in filesystem.php 'MyApp' => [ 'driver' => 'local', 'root' => storage_path('/opt/MyApp/files'), ],

But this stored the files in <laravel_app_path>/storage/opt/MyApp/files. Not what I needed.

Thanks.

Please sign in or create an account to participate in this conversation.