title: How to access config data in .js in Laravel (Not in blade)
body: <p>I can access the config data in <code>.blade</code> using</p>
  
  <pre><code>{{ config('config.variable') }}
  </code></pre>
  
  <p>However, I have no idea how to access the config data in <code>.js</code> file. Can anyone give me some suggestion?</p>