Setup the Database
Setup the Database from .env file
We need to store our data. Laravel use datase to store data. Laravel support many DB server like MySQL, PostgreSQL, SQLite, and SQL Server, for now we choose MySQL. We need to configure the database settings in the .env file located in the root directory of our myapp project. To configure the database settings, open the .env file and update the following lines:
Open .env file from myapp directory
you can replace “DB_DATABASE”, “DB_USERNAME”, and “DB_PASSWORD” with your current setup.