I have this code in blade template :
{{ $birthday->format('m/d/Y') }}
I am getting this error when $birthday is null, how to suppress this exception?
I want to show empty string when $birthday is null, I tried this two solutions but with no success:
{{ $birthday->format('m/d/Y') or '' }}
And:
{{ @$birthday->format('m/d/Y') }}
Any suggestions ? I would like blade solution not in eloquent model...