Share Share on Facebook Share on Twitter Pinterest Email I had the same problem and fixed just by converting the DB_HOST constant in the .env File FROM 127.0.0.1 into localhost DB_HOST = localhost. No need to change anything into config/database.php Don’t forget to run php artisan config:clear 0 Siddharth Shukla Website Related Posts clean laravel logs January 23, 2023 Laravel Vue JS Axios Post Request January 23, 2023 laravel eloquent wherein example January 23, 2023 laravel http request to external api January 23, 2023 Write A Comment Cancel Reply Save my name, email, and website in this browser for the next time I comment.