DEV Community

Discussion on: Create API Rest with Laravel 7.X Passport Authentication And Implement Refresh Token (Part 1)

Collapse
 
nickyapp profile image
Nicolas V. • Edited

HI !
im trying to make post on api/register but my server never response, any idea ?

Collapse
 
dean871025 profile image
din abu • Edited

have u run the php artisan serve?

Collapse
 
c4pt4inm profile image
Muhammad Uzair

I am having same issue. let me add more detail to it.
Following above installation process in laravel 7.0. when I use postman to check register api, user get registered and inserted into database but the part:
$response = $http->request('POST', env('APP_URL').'/oauth/token', [.....
does not return anything..
I searched on internet, someone said you have to pass timeout to Guzzle's http request. I did and it throws error "Connection time out".