10-Apr-2023
.
Admin
hi guys,
In this article, you will working on an application and wanted to implement image uploading to your application.Now you will display the symbolic link error on composer.
In this article, you will find the solution for issue:
ErrorException : symlink(): No such file or directory
at /home/forge/example.com/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:252
248| */
249| public function link($target, $link)
250| {
251| if (! windows_os()) {
> 252| return symlink($target, $link);
253| }
254|
255| $mode = $this->isDirectory($target) ? 'J' : 'H';
256|
Exception trace:
1 symlink("/home/forge/example.com/storage/app/public", "/home/forge/example.com/public/storage")
/home/forge/example.com/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:252
2 Illuminate\Filesystem\Filesystem::link("/home/forge/example.com/storage/app/public", "/home/forge/example.com/public/storage")
/home/forge/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Console/StorageLinkCommand.php:35
Please use the argument -v to see more details.
Run Following Commands:
step 1 : Go to /public directory and run
rm storage
step 2 : Go to Laravel root directory and run
php artisan storage:link
It will help you...
#Ubuntu
#Laravel
#Laravel 6