摘要:
环境: 查看 Linux 版本: uname -a Linux instance-s5vs80kl 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux 查看 MyS 阅读全文
摘要:
使用 Artisan 命令: php artisan storage:link 执行后目录映射关系: public/storage → storage/app/public 现在你就可以使用辅助函数 asset 来创建文件的 URL: echo asset('storage/file.txt'); 阅读全文