Connect Database in laravel 5
If you are using PHP Laravel for you web application. So must be needed to connect database in laravel 5. I help you, How to connect MySQL Database in you Laravel web application. Laravel 5, Laravel 5.0, Laravel 5.2, Laravel 5.3 and Laravel 5.4.
Follow the steps:
Open your project folder and find the .env file and open it in a text editor. Now find the DB_DATABASE, where you set your database name, database user name and database password. That’s like:
mylaravel -> .env
Example:
DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=my_db DB_USERNAME=root DB_PASSWORD=""
This is the local host example. If your project is run online so change the project URl in here APP_URL=http://localhost and set your host name, port, database name, user name and password.
Thanks for visit our blog site. We have more Laravel tutorial, Click her to see latest Laravel Tutorial. You much like Datainflow, because Datainflow is a platform, where you can the get text tutorial and video tutorial of different kind of programming language like PHP, HTML, Javascript, Jquery, CSS3 and get some programming tutorial.