Laravel PHP Developer Question: Download Laravel PHP Developer PDF

Tell me how To Set Database Connection In Laravel?

Tweet Share WhatsApp

Answer:

Database configuration file path is : config/database.php

Following are sample of database file :

'mysql' => [
'read' => [
'host' => 'localhost',
],
'write' => [
'host' => 'localhost'
],
'driver' => 'mysql',
'database' => 'database',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
],

Download Laravel PHP Developer PDF Read All 65 Laravel PHP Developer Questions
Previous QuestionNext Question
Tell me what Is System Requirement For Installation Of Laravel 5.2 (latest Version)?Explain me how to assign multiple middleware to Laravel route ?