I'm assuming that your $player->foto returns null if no image is set.
{{ !is_null($player->foto) ? HTML::image('/uploads/'.$player->foto) : "" }}
many thanks.
This is the solution: {{ !empty($player->foto) ? HTML::image('/uploads/'.$player->foto) : "" }}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community