symlink(): No such file or directory laravel ubuntu - solved
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...
- How to Notifications With database Driver in Laravel 11?
- How to Send Email Via Notification in Laravel 11?
- How to Install and Configure Laravel 11 Debugbar?
- How to Like Dislike System in Laravel 11?
- How to Paginate a Model with Relationship in Laravel 11?
- Laravel 11 Upload Files to Amazon S3 Example
- Laravel 11 Send WhatsApp Messages Example
- Laravel 11 Rest API Authentication Using JWT Tutorial