Image upload outside the LARAVEL folder

Asked

Viewed 113 times

0

Good afternoon, I have a question, is it possible for me to upload an image in the project folder? Because I have a project that the folder of the site is outside the folder of the Arable and I need to display images uploaded in the Arable on this site.

\WWW\
     DESTINO_IMAGEM\
     LARAVEL\

1 answer

1


I did not test, but I believe that you can create a new album with the rootpointing to that folder outside the Lockbox.

The disks work as a way for you to inform how your storage will be done, which can be in the local file system (using local as his driver) or even in the cloud (e.g., aws S3)

How to set up

The disk settings are in the file config/filesystems and just add one more item to the array disks. An example for your case would be:

'disks' => [
    ...
    'pasta_externa' => [
        'driver' => 'local',
        'root' => '/var/www/DESTINO_IMAGEM'
    ]
]

Browser other questions tagged

You are not signed in. Login or sign up in order to post.