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
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?