在 Windows 10 环境下, 项目中 php artisan storage:link 命令生成软连接,但是访问时总是提示 404 错误,于是远程到 homestead 环境创建软连接:
1 | vagrant up |
出现如下错误:
1 | ErrorException : symlink(): Input/output error |
https://laracasts.com/discuss/channels/laravel/symlink-inputouput-error 这里有讨论;用 ln 命令创建还是会报错,
最终,解决方案参照
https://www.cnblogs.com/youji-relog/p/11551532.html
亲测可行。