echo a default value if value not set blade using ternary operators

Submitted by star18bit - 9 years ago

In many case you want to display values in blade you can do some check sum like this:

{{ $Variable or "default value" }}
//it will turn this into ternary operators
echo isset($Variable) ? $Variable : 'default value';