代码之家  ›  专栏  ›  技术社区  ›  kenken9999

Laravel 5.6自定义存储链接/安装到Windows OS上的其他位置

  •  0
  • kenken9999  · 技术社区  · 7 年前

    https://laravel.com/docs/5.6/filesystem#configuration

    php artisan storage:link

    http://localhost/storage c:/project/storage/app/public

    http://localhost/storage/image.jpg = c:/project/storage/app/public/image.jpg

    http://localhost/ ramdisk z:/ramdisk/image.jpg

    avatar z:/avatar/image.jpg

    1 回复  |  直到 7 年前
        1
  •  0
  •   Levente Berky    7 年前

    /storage/app/... 或者在 /public/images/...

    php artisan storage:link /public/ app/public

    z 在应用程序的PC上,您应该在 http://localhost/ramdisk/... 将是一个名为 ramdisk public z:/ramdisk/

    avatar