adspace


How to Connecting to Database in Laravel ?

Answer Posted / Dharamveer

To connect to a database in Laravel, you need to configure the database connection details in the `.env` file and define the database connection in the `config/database.php` file. After that, you can use the Eloquent ORM (Object-Relational Mapper) to interact with the database.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How much laravel experience do you have?

815


Tell us have you used lumen before?

808


Do you know what version of laravel do you generally use?

839


What is latest version of laravel?

869


What is current stable version of laravel?

870