Laravel Database Config

Setup a Database Connection

all-important settings keys and values like database configuration placed in the .env file 
which is located in the man folder of the project
 
Laravel DB env
 
The default DB connection in Laravel is MySql.Currently, Laravel supports four databases:
  • MySQL 5.6+
  • PostgreSQL 9.4+
  • SQLite 3.8.8+
  • SQL Server 2017+
if you need to use any other DB like SQLite
First, you need to create a new SQLite DB 
then all you need to edit the DB configuration in .env file 
DB_CONNECTION=sqlite
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=larave
DB_USERNAME=root
DB_PASSWORD=pass
 
So the interacting with databases in Laravel very Easy