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
    
    已采纳该答案
    打赏 评论

相关推荐 更多相似问题