Don't use Blade braces unless in a Blade template:
$resort_picture1 = '<img src="' . asset("images/Resort Pictures/" . $resort->resort_picture1) . '" alt="logo">';
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm using another way to view image. But the image is not showing only the thumbnail. This is my code below in Laravel controller.
foreach($data as $d) {
$resort_picture1 = '<img src="{{asset("images/Resort Pictures"'.$resort->resort_picture1.')}}" alt="logo">';
$active = 'Active';
$action = ' ';
}
Don't use Blade braces unless in a Blade template:
$resort_picture1 = '<img src="' . asset("images/Resort Pictures/" . $resort->resort_picture1) . '" alt="logo">';
Please or to participate in this conversation.