2
I’m in trouble, using LARAVEL 8 and Voyager installed. When logging in via SSH on my shared server I am in "public", its going down a level I go to "meusite.com.br" here upei all the files and directories of Laravel that in example has this structure:
/app
/storage
../public/index.php
/outros
In that ssh nay I have access to php cli to run "php Artisan make:link" So I need to create a symbolic link from the "Storage" folder to the "public" folder with the command: ln -s /Storage /public But the "ln" command also nay is recognized in the ssh of the umbler. As a solution I thought of creating the directory Storage inside the public. Does anyone know if it is possible?. If yes how to do. If not, another suggested solution?
Worked ? ...
– novic
@novic Your tip worked, my system is now picking up the images from the new directory which is an exact copy of the previous one and is also saving the new images correctly. However I am afraid as follows: My new entry in filesystems.php looks like this: 'newstorage' => [ 'driver' => 'local' 'root' => public_path('newstorage/app/public'), 'url' => env('APP_URL'). '/newstorage/app/public', 'visibility' => 'public', ];'
– jeanpilger
@novic Your tip worked, my system is now picking up the images from the new directory which is an exact copy of the previous one and is also saving the new images correctly. Follow the code:
'newstorage' => [
 'driver' => 'local'
 'root' => public_path('newstorage/app/public'),
 'url' => env('APP_URL').'/newstorage/app/public',
 'visibility' => 'public',
 ];

However I am a little afraid of this solution that I will describe in another question, because this I will mark as resolved if you can help me there thank you. Thank you!– jeanpilger