title: Laravel Image Default
body: <p>My user uploads a profile picture which is stored in storage/profile_picture/user1.png. I use Filesystem and Storage classes to do so.</p>
  
  <p>To retrieve the image I use <code>{!! Html::image(route('profile.thumbnail', $user-&gt;profilepic_filename), "Your Picture Here", ['class'=&gt;'img-responsive']) !!}</code></p>
  
  <p>In my Controller I have</p>
  
  <pre><code>public function thumbnail($filename)
  {
      $user = User::where('profilepicture_filename', '=', $filename)-&gt;firstOrFail();
      $file = Storage::disk('local_profile')-&gt;get($user-&gt;profilepicture_filename);
  
  
      //$file = URL::asset('/images/default_profilepicture.png'); //doesn't work
  
      return (new Response($file, 200))-&gt;header('Content-Type', $mime);
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I want to get a default image if the profile picture is not found or not uploaded. How can I do so?</p>
  
  <p>Thanks,</p>
  
  <p>K</p>