Firstly, if you store files in that folder, all you need to do is use the symlink and path to the file in your views. No need to even use Storage::url().
Have you got the symlink on the git repo you're pulling from?
@amirhazz Shame that if you have the symlink in git, it will be the wrong path. Using that command on each deploy is required or you can just use the unix command to add it properly, which will work each time.
Please I really ll need your input with a similar case to this three that I’m having.
I’m using Git with Envoyer to deploy my Laravel app. Image uploading work just fine on local machine. But each time I push to server, the “storage” folder in “public” folder disappears and I will have to run “php artisan storage:link” to get it back. This is tedious because each time I update my code and “git push” to remote, I need to run the command again.
Please, is there a parmenent fix to this?
Thank you.
@Deshola Envoyer should have a section where you can supply a list of folders to link to certain places. I don't use it, I use https://github.com/REBELinBLUE/deployer which does have that functionality.