title: Axios returning 404 on laravel api request
body: <p>ive a write a code to send a get request to server using vue js.but it return 404 not found exception thought the route is created on laravel.</p>
  
  <p><a href="https://i.stack.imgur.com/jtpAm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jtpAm.png" alt="enter image description here"></a></p>
  
  <pre><code>axios.get('/api/v1/companies')
                  .then(function (resp) {
                      app.companies = resp.data;
                  })
                  .catch(function (resp) {
                      console.log(resp);
                      alert("Could not load companies");
                  });
  </code></pre>
  
  <p>route file : </p>
  
  <pre><code>Route::group(['prefix' =&gt; '/v1', 'namespace' =&gt; 'Api\V1', 'as' =&gt; 'api.', 'middleware' =&gt; 'auth:api'], function () {
      Route::resource('companies', 'CompaniesController', ['except' =&gt; ['create', 'edit']]);
  });
  </code></pre>