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
Source:stackexchange.com