Broken Media Images

There are multiple reasons why images might not show on your NexoPOS 4.x installation. This guide will go through the different steps you need to covert in order to fix this problem.

Storage is not symlinked

Probably during the installation of NexoPOS 4.x, you've forgotten to create a symbolic link for your store. Since media are saved on a Storage directory, those images will successfully be uploaded, but won't appear (will appear as broken). The solution for this is to create a symbolic link using this command :

php artisan storage:link

Broken Symbolic Link

If you've recently moved NexoPOS 4.x or even changed the name of the directory that holds the project, then probably the symbolic link previously created is broken (pointing to the wrong path, as symbolic links are absolute). Here, you'll need to delete the "storage" link (it's like a shortcut on Windows) within the "public" folder.

Right after this, you'll need to run the following command :

php artisan storage:link