title: file_put_contents() store files outside the public folder laravel
body: <p>Hi I am trying to save file <strong>inside public folder</strong> using this <em><strong>file_put_contents()</strong></em> but in local it working fine it save file in public folder <strong>but in live server it save outside the public folder.</strong></p>
  <pre><code>file_put_contents($lesson-&gt;id.'test'.$i.'.mp3', $resp-&gt;getAudioContent());
  </code></pre>
  <p><a href="https://i.stack.imgur.com/hfY9C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hfY9C.png" alt="enter image description here" /></a></p>
  <p>my local URL contains public word but live URL is without public word
  Thanks for any help</p>