title: Laravel + VueJS + Axios Get Request Not Working
body: <p>I am new to Vue and Laravel. I want get users from the database with Axios. But it doesn't work. Axios post request works fine but get request not work. Please help me.</p>
  <p>Thanks.
  *</p>
  <p><strong>UserController.php</strong></p>
  <pre><code>    public function index()
      {
          
          return User::latest()-&gt;paginate(10);
  
      }
  </code></pre>
  <p><strong>Api.php</strong></p>
  <pre><code>Route::apiResources(['user' =&gt; 'App\Http\Controllers\API\UserController']);
  </code></pre>
  <p><strong>Users.vue</strong></p>
  <pre><code>&lt;script&gt;
  import axios from 'axios'
      export default {
        data(){
          return{
            users : {},
            form: new Form({
              name: '',
              email:'',
              password: '',
              type: '',
              bio: '',
              photo: '',
            })
          }
        },
        methods:{
          loadUsers(){
            console.log('Load user');
            axios.get(&quot;api/user&quot;).then(({data})  =&gt; (this.users = data.data));
          },
        
          createUser(){
            this.form.post('api/user')
          }
        },
          created() {
              this.loadUsers();
          }
  
      }
  &lt;/script&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/ny6Oc.png" rel="nofollow noreferrer">Route List</a></p>
  <p><a href="https://i.stack.imgur.com/cAVj7.png" rel="nofollow noreferrer">Function successfully call but it didn't work.</a></p>
  <p><a href="https://i.stack.imgur.com/KyyzI.png" rel="nofollow noreferrer">Vue Debug</a></p>
  <p><a href="https://i.stack.imgur.com/sGO9o.png" rel="nofollow noreferrer">Network1</a></p>
  <p><a href="https://i.stack.imgur.com/frV4M.png" rel="nofollow noreferrer">Network2</a></p>