title: How to set root/base url for a laravel-vujs project?
body: <p>I've deployed a VueJS project to a domain like <code>www.example.com/demos/app,
  </code>
  But when I send a request to api from axios it is pointing to <code>www.example.com/login</code> instead of <code>www.example.com/demos/app/login
  </code></p>
  
  <p>Here is my request code using <code>axios</code></p>
  
  <pre><code>export const login = ({ dispatch }, { payload, context }) =&gt; {
      return axios.post('/login', payload).then((response) =&gt; {
          // do something
      }).catch((error) =&gt; {
          // handle erros
      })
  }
  </code></pre>