php - Error creating resource: [message] fopen(https://localhost:80/oauth/token): failed to open stream: Connection refused

one text

Solution:

The problem had to do with Laravel Passport.

I was missing the variables ACCESS_TOKEN_CLIENT_ID et ACCESS_TOKEN_CLIENT_SECRET in my .env file that were created during development by running php artisan passport:install and that correspond to the oauth-private.key and oauth-public.key file that are created when running that same command.

Bottom line is always make sure you have the same relevant values in your .env file as your colleagues when you join a project.

Source