I ma building an admin dashboard for my app with angular as frontend framework and laravel api as backend.
I want to manage all registered users from users table . I am using 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] Route::get('/users','Auth\RegisterController@index')->middleware('auth');
can i get access to all users ? or there is 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]?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire