title: Display image in laravel
body: <p>I have already uploaded the image in a folder and stored its path in the database field. I am trying to display image like this:
  Controller:</p>
  
  <pre><code>public function showProfileImage($id)
      {
          $profileimage = UserProfileModel::where(['usrID' =&gt; $id])-&gt;first();
  
          return view('userlogin::welcome')-&gt;with('profileimage', $profileimage-&gt;userPicpath);
  
      }
  </code></pre>
  
  <p>my blade template has:</p>
  
  <pre><code> &lt;img src="{{ route('showprofileimage', ['id' =&gt; Session::get('loggedinuserid')]) }}" height="150" /&gt;
  </code></pre>
  
  <p>But the path returned in the src is the route path, it doesn't contain the 'profileimage' path returned form the controller. How do i do this? Thanks</p>