I ma building an admin dashboard for my app with angular as frontend framework and Laravel API as a backend.
I want to manage all registered users from the user’s table. I am using a passport for user authentication and giving token to each user.
What I know is, without the token, I cannot access the individual user. But i need access to all users ,perform [edit,delete] .
Without middleware i can get all registered user [but this is not a secure way in my opinion]
can I get access to all users ? or there are other methods to achieve this?
I need suggestion. what is the appropriate method to get all users [which in normal way can only be accessed when the user is logged in and gives single user information]?