Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Php :: laravel 6 link storage with public 
Php :: hasany cakephp 
Php :: get_template_directory_uri 
Php :: php string length 
Php :: check if ajax request php 
Php :: get all routes laravel 
Php :: show all terms of a custom taxonomy 
Php :: php if no imagee exists 
Php :: debug graphql wordpress 
Php :: composer ignore platform reqs 
Php :: homebrew install php 7.4 
Php :: eloquent where between 
Php :: ubuntu install php mongodb extension 
Php :: base64 encode laravel 
Php :: string replace smarty 
Php :: laravel $loop-iteration 
Php :: enqueue wordpress 
Php :: php isarray 
Php :: php pluck from array of objects 
Php :: laravel carbon get year number 
Php :: laravel ide helper 
Php :: get parent page link wordpress 
Php :: get current term id 
Php :: php current file name 
Php :: php numbers from 1 to 100 array 
Php :: order By Asc in laravbel 
Php :: base64 decode in php 
Php :: php mysql date 
Php :: get acf repeater field 
Php :: tax query by term id 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =