This is telling you that Laravel is unable to connect to the DB. Please check your DB is available or use an alternative DB (i.e. SQlite)
How to set token expiry in AuthServiceProvider from Database
Hello Everyone, I need to fetch some settings from database to setup Passport::tokensExpireIn and Passport::refreshTokensExpireIn from the DB itself. It is working fine but when I run test cases using GitHub action it is not working while running php artisan migrate. It seems the DB is not available in the service by that time. Please help.
Error Illuminate\Database\QueryException
SQLSTATE[08006] [7] connection to server at "localhost" (::1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? (SQL: select * from "application_configurations" where "internal_name" = omd)
Please or to participate in this conversation.