@hansje are you showing the whole error message?
setting the host to localhost (and back)
What is back ?
Also what port are you using in your .env file? Or even better, show the whole .env file
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Im following the laravel from scratch series, i'm at the point where ive setup a db and try to show the information on my views. When I start the homestead server, everything works fine. I can access the data from the db etc.
After 1 minute the connection to the db seems to be failing and I get the connection refused error.
What i've tried:
Anyone that can help me out?
Please or to participate in this conversation.