Laravel Data Warehouse Synchronization

Ive written a Laravel application where I upload images and pdf files.
Currently, upload them to a folder in the public directory.

Now I'm trying Envoyer.io, where I can easily deploy my projects to server (s). The problem here is that each project has its own directory. Therefore, every time all these downloads disappear. Ive found out that Envoyer uses a symbolic link for the storage directory in each deployed project.

I can upload files to the storage directory, but when I return the URL from the files to the pth repository, I get a path like "/var/www/project/app/storage/file.ext", which is the base path. I do not want to return these links in my API for security reasons. Can I somehow download to the storage path and get these downloads with a friendlier url? Or does anyone have an ither solution?

+4
source share
1 answer

If you use the Laravel storage function, you do not need to worry about the absolute path. You can even save files in the Amazon cloud on a completely different machine.

, PHP File. Laravel Storage PHP File.

Envoyer . , Amazon Facaging Facade.

http://laravel.com/docs/5.0/filesystem

+1

Source: https://habr.com/ru/post/1584240/


All Articles