title: Laravel use HTML::image for background-image
body: <p>how to use <code>HTML::image()</code> for inline styled with <code>background-image</code> such as this html tags:</p>
  
  <p>this line is into my main.blade.php file and that is main skeletion of my template.</p>
  
  <pre><code>&lt;div style="height: 45px;background-image:url('../public/images/header_pattern2.png');border-radius: 5px;position:relative"&gt;
  </code></pre>
  
  <p>in main.blade.php my page view correct template. but after redirect such as <code>login.blade.php</code> images do not show. but after switch to index i do not have a problem.</p>
  
  <p>in public directory i have <code>images</code>,<code>js</code>,<code>css</code> folders and my public is this:</p>
  
  <pre><code>'public' =&gt; __DIR__.'/..',
  </code></pre>
  
  <p>i can remove public directory. how to convert <code>background-image:url('../public/images/header_pattern2.png');</code> to blade <code>HTML::image()</code> tag?</p>