Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

storage image not showing in laravel on cpanel

Try creating a file in your public folder (filename.php). Add the code and save

$targetFolder = $_SERVER['DOCUMENT_ROOT'].'/storage/app/public';
$linkFolder = $_SERVER['DOCUMENT_ROOT'].'/public/storage';
symlink($targetFolder,$linkFolder);
echo 'Symlink process successfully completed';
browse the file you created site.com/filename.php

Credit: https://www.nicateliyev.com/en/post/how-create-symbolic-link-laravel-website-cpanel
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #storage #image #showing #laravel #cpanel
ADD COMMENT
Topic
Name
6+5 =