Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pack254's avatar

php artisan storage:link not work on Homestead

Dear Laravel Developers

Hi guys, I would like to get some help. Now I developing one Laravel project on window10 by using Homestead environment.

Software includes: -- Virtualbox 5.2.4 -- Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-101-generic x86_64). -- vagrant version 2.0.1

I got this error message:

php artisan storage:link

In Filesystem.php line 228:

symlink(): No such file or directory

I am very appreciated for your help guys

0 likes
4 replies
mushood's avatar

Dear Fellow Laravel Developer,

Please do send us your filesystems.php as well especially at that line 228

Also if you could also include the full error stack trace.

I am also assuming your run the command in your root project folder.

pack254's avatar

I have run php artisan storage:link on my main project buddy. The steps of the command are below:

$ vagrant ssh Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-101-generic x86_64)

0 packages can be updated. 0 updates are security updates.

cd Project cd digitalprint dir app composer.json database public server.php vendor artisan composer.lock package.json resources storage webpack.mix.js bootstrap config phpunit.xml routes tests yarn.lock php artisan storage:link In Filesystem.php line 228: symlink(): No such file or directory

This is all I have in filesystems.php

return [

/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. The "local" disk, as well as a variety of cloud
| based disks are available to your application. Just store away!
|
*/

'default' => env('FILESYSTEM_DRIVER', 'local'),

/*
|--------------------------------------------------------------------------
| Default Cloud Filesystem Disk
|--------------------------------------------------------------------------
|
| Many applications store files both locally and in the cloud. For this
| reason, you may specify a default "cloud" driver here. This driver
| will be bound as the Cloud disk implementation in the container.
|
*/

'cloud' => env('FILESYSTEM_CLOUD', 's3'),

/*
|--------------------------------------------------------------------------
| Filesystem Disks
|--------------------------------------------------------------------------
|
| Here you may configure as many filesystem "disks" as you wish, and you
| may even configure multiple disks of the same driver. Defaults have
| been setup for each driver as an example of the required options.
|
| Supported Drivers: "local", "ftp", "s3", "rackspace"
|
*/

'disks' => [

    'local' => [
        'driver' => 'local',
        'root' => storage_path('app'),
    ],

    'public' => [
        'driver' => 'local',
        'root' => storage_path('app/public'),
        'url' => env('APP_URL').'/storage',
        'visibility' => 'public',
    ],

    's3' => [
        'driver' => 's3',
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'region' => env('AWS_DEFAULT_REGION'),
        'bucket' => env('AWS_BUCKET'),
    ],

],

];

mushood's avatar

did you configure your "env('APP_URL')" correctly?

I mean in your .env file, is the APP_URL set to your application url?

Please or to participate in this conversation.