@hellopeter13 Well, yes. That’s what basic authentication is: it prompts for a username and password. So it’s not what you want for an API. At all.
Instead you should be using some form of cookie or token-based authentication, such as that provided by Sanctum.
Also, “get-students” isn’t really a conventional name for an API endpoint. If you’re building a REST-like API then define REST-like routes. Your URI would be something like /api/v1/students instead, and then depending on what HTTP method you use to access the URI would depend on what controller method is called. Laravel calls these resource controllers.
