title: Determining If a File Exists in Laravel 5
body: <p><strong>Goal</strong> : If the file exist, load the file, else load the <code>default.png</code>.</p>
  
  <hr>
  
  <p><strong>I've tried</strong> </p>
  
  <pre><code>  @if(file_exists(public_path().'/images/photos/account/{{Auth::user()-&gt;account_id}}.png'))
      &lt;img src="/images/photos/account/{{Auth::user()-&gt;account_id}}.png" alt=""&gt;
    @else
      &lt;img src="/images/photos/account/default.png" alt=""&gt;
    @endif
  </code></pre>
  
  <hr>
  
  <p><strong>Result</strong></p>
  
  <p>It kept load my <strong>default</strong> image while I'm 100% sure that <code>1002.png</code> is exist. </p>
  
  <p>How do I properly check if that file is exist ? </p>