[Vuejs]-Laravel axios vue.js / Error to connect to database

0๐Ÿ‘

โœ…

{{route('api_users') }} is a blade function and cannot be used in your .js file.

you could:

  • hardcode the url /users in your javascript file
  • bind the routes to the frontend in blade and access it through there
  • etc

Leave a comment