Tell me how To Set Database Connection In Laravel?
Submitted by: MuhammadDatabase 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' => '',
],
Submitted by: Muhammad
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' => '',
],
Submitted by: Muhammad
Read Online Laravel PHP Developer Job Interview Questions And Answers
Top Laravel PHP Developer Questions
☺ | Do you know what is Laravel Framework? |
☺ | Do you know what is Luman? |
☺ | Do you know what is HTTP middleware? |
☺ | Tell us how To Use Update Statement In Laravel? |
☺ | Can you please explain the difference between Laravel and Codeigniter? |
Top Web Developer Categories
☺ | Bootstrap Interview Questions. |
☺ | Front End Web Developer Interview Questions. |
☺ | Typography Interview Questions. |
☺ | Laravel PHP Developer Interview Questions. |
☺ | Junior Developer PHP Interview Questions. |