当前位置:网站首页>Symlink(): solution to protocol error in PHP artisan storage:link on win10
Symlink(): solution to protocol error in PHP artisan storage:link on win10
2022-07-03 11:59:00 【ignativs amor】
background
Learning file storage modules from documents , Here, you need to enter the configuration file filesystems Set the soft connection you want
/* |-------------------------------------------------------------------------- | Symbolic Links |-------------------------------------------------------------------------- | | Here you may configure the symbolic links that will be created when the | `storage:link` Artisan command is executed. The array keys should be | the locations of the links and the values should be their targets. | */
'links' => [
public_path('storage') => storage_path('app/public'),
],

As shown in the document : Once configured , You need to perform
- php artisan storage:link
Soft connection can take effect ;
problem
But after I execute the above order , Tips symlink (): Protocol error, What reminds me here is , My local installation is homestead, I don't know it's not a configuration problem , Open the document and look again ;
The last step of the document reads as follows :
therefore , I copied this configuration , But after I re entered the virtual machine , perform php artisan command , Or hint symlink (): Protocol error, Even with sudo It's still this mistake , I started Baidu at this time ;
It is suggested to use CMD As the administrator of , That's all right. ;
result
therefore :
1、 sign out homestead And shut down vagrant
1、exit
2、vagrant halt

2、 The administrator enters CMD, Then go to the virtual machine

And then execute php artisan command :
Show successful execution , At this time, I can directly visit storage Under the table of contents , Uploaded pictures ; Successful visit !!!
边栏推荐
猜你喜欢
随机推荐
"Jianzhi offer 04" two-dimensional array search
CGroup introduction
利用Zabbix动态监控磁盘I/O
R语言使用原生包(基础导入包、graphics)中的hist函数可视化直方图(histogram plot)
shardingSphere分库分表<3>
《剑指offer 04》二维数组查找
Cacti监控Redis实现过程
Deploying WordPress instance tutorial under coreos
ArcGIS应用(二十一)Arcmap删除图层指定要素的方法
Uniapp implementation Click to load more
Vulnhub geminiinc
typeScript
DEJA_VU3D - Cesium功能集 之 054-模拟火箭发射全过程
836. Merge sets (day 63) and search sets
Modular programming of single chip microcomputer
Groovy测试类 和 Junit测试
Nestjs configuration service, configuring cookies and sessions
STL Tutorial 9 deep copy and shallow copy of container elements
Introduction to the implementation principle of rxjs observable filter operator
Unity3D学习笔记5——创建子Mesh








