简体   繁体   中英

Why symlink not working in php artisan serve in laravel

I just tried the symbolic link in laravel, and it is working fine when I'm using valet.

But when I use php artisan serve command, it returns 404 error . I've read a lot regarding this topic but none of them works. Maybe you have an idea?

404 when using: php artisan serve

  • asset('storage/images/me.jpeg')
  • url('/') . '/' . 'storage/images/me.jpg'
  • '/storage/images/me.jpg'

每次更改服务器时(例如从本地到生产的表单,或者从某处下载storage ),您都需要重新创建将storage链接到public的符号链接(查看此处了解更多信息)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM