Option 1
You can link it to another place inside the storage
folder and create a separate disk
$ ln -s /home/user/www/storage/more-space /home/user/www/example.com/
Inside your config/filesystem.php
you can add an additional disk
// config/filesystem.php
'disks' => [
'more-space' => [
'local' => [
'driver' => 'local',
'root' => storage_path('more-space'),
],
]
]
and work with it Storage::disk('more-space')
.
Option 2
- You move everything that is inside your current
storage
folder into your new folder /home/user/www/example.com/
- Remove your
storage
folder with rm -rf /home/user/www/storage
- Symlink the new folder
ln -s /home/user/www/storage /home/user/www/example.com/
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…