miso
3 years ago

Blade equivalent isset($v) ? 'string'.$v : ''

Posted 3 years ago by miso

Hi, I have this, but I want the slash / be included only if $block->name_alt is set and nonempty. Is it possible with Blade?

{{ $block->name }} / {{ $block->name_alt }}

Please sign in or create an account to participate in this conversation.