Не могу отобразить картинку в view
controller
public function store(PostFormRequest $request)
{
$post = new Post();
$post->title = $request->get('title');
...
if($request->hasFile('image')){
$image = $request->file('image');
$filename = time() . '.' . $image->getClientOriginalExtension();
Image::make($image)->resize(300, 300)->save( public_path('/uploads/avatars/' . $filename ) );
$post->image = $filename;
}
if($request->has('save'))
{
$post->active = 0;
$message = 'Post saved successfully';
}
else
{
$post->active = 1;
$message = 'Post published successfully';
}
$post->save();
return redirect('edit/'.$post->slug)->withMessage($message);
}
view
<div>
<img src="/uploads/avatars/{{ $post->image }}">
</div>
хотя в консоле браузера путь к картинке видно