If you have terminal access to your live server, inside laravel app folder, run the same command as you did on local machine: php artisan storage:link
Image not showing after linking public to public_html (C-panel)
helly community, I upload images to sub directories inside storage/app/public. I have expample logos and users directories.
Uploads and everything works on local host after running php artisan storage:link
But on live server it is not working . I am using cpanel, so I symlink the public inside my primay_folder to public_html.
When i try accessing it url, it gives 404.
Link to image of the the directory https://drive.google.com/file/d/1sfzt7SCN0_wSyD8BrZBDsAHLRmZC_b5I/view?usp=sharing
What might have been doing wrong or is there best way to go about this?
SOLVED
It was as a result of an if condition to check the path on production or on local. everything works fine now. Thanks to @boby for an eye opening
Please or to participate in this conversation.