In this tutorial I’m going to describe how to fix “unknown database in laravel Bug”

Unknown database:- SQLSTATE[HY000] [1049] Unknown database ‘laravel’ (1049)
Whenever you migrate in laravel and its showing unknown database name, please follow some easy steps its 100% work for you.
php artisan migrate

When you stuck this kind of bug you have to go .env folder and check your database name and put same name as “edureka” in .env folder

then go to phpmyadmin and put database name “edureka” then run this command —

php artisan c:cache
php artiasn:migrate
php artiasn:serve
http://127.0.0.1:8000/

Login successfully thank….