douci4026 2015-12-21 18:28
浏览 9
已采纳

URL中的问题:Laravel 5.1

What is it about ?

On Godaddy Shared Hosting, I have space on Linux Server. My Directory Structure is like below in the screenshot

enter image description here

We can see from the above screenshot that the app is inside the Framework folder and Framework folder is in the root.

What's the Problem ?

In the First screenshot, we can find Users Directory inside Framework folder. That has file in the below given path

Framework/Users/Helper/Profile/user.png

I am not able to make the url that can point to above mentioned file.

What I tried so far ?

<img src="{{URL::asset('/Users/Helper/Profile/User.png')}}"}}

Am I missing something ?

  • 写回答

1条回答 默认 最新

  • duanfoumi5620 2015-12-21 19:08
    关注

    What I would suggest is that you move all the folders inside the Framework folder and move them into the root folder. Basically, just get rid of the Framework folder. This would allow you to use the helper methods.

    Then move the Users folder into the public_html folder, and you should be good to go.

    Your directory structure should look like this after you remove the Framework folder and move it's content in the root folder.

    - app
    - bootstrap
    - config
    - database
    - resources
    - storage
    - tests
    - vendor
    - logs
    - mail
    - public_html
        - Users
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?