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 How to Check Laravel Version via CLI August 27, 2021 Laravel 8 Compare Two Carbon Dates August 24, 2021 How to make laravel 8 Shopping Cart August 22, 2021 API Authentication using Laravel Sanctum — Laravel 8 August 16, 2021 Write A Comment Cancel Reply Save my name, email, and website in this browser for the next time I comment.