I have been trying to create a symlink between the storage/app/public folder and the storage folder that are located in the public_html directory. I am currently making use of a shared hosting plan and currently do not have access to a terminal on the server. I have tried to create a symlink by executing the below route, but are receiving the error:
ErrorException
symlink(): No such file or directory
Route::get('/foo', function () {
Artisan::call('storage:link');
});
@snapey Thank you for your reply. I have tried to create a link by executing the below code. It creates a link in the public_html folder called "storage", but the images that are stored in the path: homedirectory/findingproperty/storage/app/public/cover_images are still not displaying on the front end. I am not sure whether the target folder path and the link folder path in the code are set correct though.
@michaloravec Thank you for the reply. I have executed the suggested code. A link called "storage" was created in: homedirectory/public_html/public, but the images still doesn't display on the front end. The path to the images in the blade view are: