Make coding learn easy

How to configure database connection Laravel 5.5

Database connection it's file must be you need to configure, for connecting the database to website when we developed dynamic web . In laravel we need to configure file database connection because laravel it's framework dynamic web.

now in this post, we can configure the database connection file in laravel 5.5 framework. for step one we need to know database connection file in laravel 5.5, database connection file in laravel 5.5 name is .env and location file is C:/xampp/htdocs/folder_laravel/folder_file_laravel  like image below.

env file the database connection files on laravel 5.5

if founded the file, open file with text editor like Notepad ++.  before edit .env file, we need to create database on localhost with phpmyadmin. After create database open .env file with notepad++, search database DB_CONNECTION, and edit like image below.

editing env file on db connection with username database

after edit .env file laravel framework have connected with database.

thanks for viewing my blog, if you need ask for this post, you can write a comment. Ok see you next post.
0 Comments for "How to configure database connection Laravel 5.5"

Back To Top