I have the following route in my routes/api.php
Route::get('/games/{game}', 'GamesController@show')->name('api.games.show');
On client side, I already included Authorization bearer token header in every AJAX request.
How can I retrieve the value of the user associated with the token throught $request->user()
without having to require authentication (without having to use ->middleware('auth:api')
)
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire