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 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。
  • ¥20 CST怎么把天线放在座椅环境中并仿真