I\'m trying to run the following artisan command:
php artisan storage:link
I get this error:
[ErrorException]
symlink(): Protocol er
First close vagrant with vagrant halt
command, then run cmd as administrator, go to your homestead folder, start Vagrant with vagrant up
and then you can run php artisan storage:link
.
For me it worked :)
In my case I run vagrant as Administrator and is working.
Do not forget to vagrant halt on other machine and start new as administrator.
php artisan storage:link
Output:
The [/home/vagrant/code/public/storage] link has been connected to [/home/vagrant/code/storage/app/public].
The links have been created.
Try to run php artisan storage:link
from host machine. This will wok
Run cmd as Super Admin.
php artisan storage:link is OK.
Your problem probably is that you have to start your vagrant box as a system administrator.
So hit start type "cmd", right click it choose "Run as administrator". Navigate to your project, type "vagrant up". Retry the command.
Creating symbolic link on Homestead?
You must login as cmd administrator, to do this click on the windows key and X. Then select the administrator system symbol. Do not forget to give her vagrant halt at the other terminal.