I have a Laravel 5.5 application I am able to login with API but unable to access routes with "auth:api" middleware.
Sending headers like
1 . Accept = application/json
2 . Authorization = Bearer eyJ0eXAi.....xxxxxxxx
In api.php
Route::middleware('auth:api')->group(function(){
Route::post('user', 'Api\Auth\PassportController@getDetails');
}
This working on local but not on server.
Don't know whats wrong. Please help me to solve this issue.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2HbJPy1
via IFTTT
Aucun commentaire:
Enregistrer un commentaire