All the routes in my API endpoints need JWT. However, I have a route that also require Laravel Passport token.
//Business
Route::group(['prefix' => 'business', 'middleware' => ['jwt.auth']], function () {
Route::post('/user', 'UsersController@store');
Route::post('/login', 'UsersController@login');
Route::get('/user/{id}', 'UsersController@show')->middleware('auth:api');
});
How can I add two authorisation tokens in Postman in order to test the show
method
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2K9RWJh
via IFTTT
Aucun commentaire:
Enregistrer un commentaire