Back to News & Newsletter Support


Images on the post listings page showed. But when you click into each blogpost page, the images failed to be loaded. I have been looking for the problem here. I wonder if there was an error in the code below under the Posts.php in controllers folder.

``public function onShowImage() { $this->vars['title'] = Item::where('image', post('image'))->value('title'); $this->vars['image'] = '/storage/app/media'.post('image');

    return $this->makePartial('show_image');

I am thinking this line $this->vars['image'] = '/storage/app/media'.post('image'); Can anyone help?

1-1 of 1