单页视图没有从布局中加载图像


Single page view not loading Images from layout

因此,当点击链接查看单个视图时,页面中断并且不加载我的图像。

布局工作正常https://i.stack.imgur.com/Th5Fd.png

布局打破了https://i.stack.imgur.com/MiEhh.png

链接到路由

{{URL::route('post',$post->id)}}

Post Controller

public function getPost($id = null)
{
    return View::make('index.post')
      ->with('post',Post::find($id)
      ->with('title','Post');
}

路线
  `Route::get('post/{id},array('as'=>'post','uses'=>'PostsController@getPost'));`

任何帮助将不胜感激,这个问题快把我逼疯了

根据有限的信息,最好的猜测是您有相对而不是绝对的图像url。

所以你要用像

这样的东西来链接图片
<img src="images/layout/header1.jpg" />
当你应该用 时,却用

<img src="/images/layout/header1.jpg" />