Laravel Passport Route redirects to login page
问题 I'm using Laravel 5.3 & Passport. When using Postman to test any route I have set in api.php file it always returns the login page. Here is an example of my testing route: Route::get('/getKey', function() { return 'hello'; })->middleware('client_credentials'); Postman params: Accept application/json Authorization Bearer <then my key> I have set middleware to 'auth:api' per another solution I found while searching for the answer. protected function mapApiRoutes() { Route::prefix('api') -