According to the Laravel documentation
{{{ $name or 'Default' }}}
should behave like
if(isset($name))
echo $name
else
echo 'Default'
or
echo isset($title) ? $title : 'Default'
But it is returning 1
as if it were a true
.
Now I'm using {{ isset($title) ? $title : 'Default' }}
and it's working, but I'd like to understand what happens in the first version, does anyone know why I get 1
?