Hello friends, this is a tutorial website. Today’s topic is that the database connection in laravel 8 is done by going to which file. So let’s try to understand.
When you install laravel 8, you will have to go to the .env file. After going there, you will have to provide the username of the database, the name of the database and the password there. You are told by the example below .env file can change.
DB_DATABASE=db_name //database name here
DB_USERNAME=username //database username here
DB_PASSWORD=password //database password here
You are told above by way of example. You have to change in the env file but it has been darkened so that you can be explained in a very simple way.