title: How to suppress "Call to a member function function() on null" error in laravel blade?
body: <p>I have this code in blade template :</p>
  
  <pre><code>{{ $birthday-&gt;format('m/d/Y') }}
  </code></pre>
  
  <p>I am getting this error when $birthday is null, how to suppress this exception?</p>
  
  <p>I want to show empty string when $birthday is null, I tried this two solutions but with no success:</p>
  
  <pre><code>{{ $birthday-&gt;format('m/d/Y') or '' }}
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>{{ @$birthday-&gt;format('m/d/Y') }}
  </code></pre>
  
  <p>Any suggestions ? I would like blade solution not in eloquent model...</p>