1
I have several projects Laravel
on the same server. Often, I need to use employee photos and, as I have programmed, I copy the photos from the directory public/assets/
images from an existing project to the same directory as the project being developed, causing a very large increase of repeated files. Is there any way to share photos between projects or have a common repository?
I saw that there is a feature in Laravel, which is the use of 'symbolick link', but I didn’t understand absolutely how to do.
Below, I make an example of the idea I’m trying to approach, not knowing if this is the way. The code is of the project under development, needing to pick up the path of the photo of another existing project, using the word pathFile as this note:
<tr>
<td>
<img src='+caminhoArquivo+'+retorno[i].foto+'" style="width:50%;height:auto;" />
</td>
</tr>
Would it be possible?
If you create a sub-domain pointed to that directory and use on other sites?
– novic
@Virgilionovic my problem, which must be really particular, is that I tried to refer to a common folder in the served using an absolute path, but, I don’t know if it is Laravel’s impediment, it never works. You always say the path doesn’t exist.
– user4701