How to configure MariaDB in Laravel 5? How to configure MariaDB in Laravel 5? database database

How to configure MariaDB in Laravel 5?


'mysql' => [        'driver'    => 'mysql',        'host'      => env('DB_HOST', 'localhost'),        'port'      => env('DB_PORT', '3307'),        'database'  => env('DB_DATABASE', 'doctorsondemand'),        'username'  => env('DB_USERNAME', 'root'),        'password'  => env('DB_PASSWORD', 'root'),        'charset'   => 'utf8',        'collation' => 'utf8_unicode_ci',        'prefix'    => '',        'strict'    => false,    ],

Well, the problem was with the port. By default it is not mentioned and they take it as 3306. So, we have to include that line and mention that the port is 3307. That solved the problem.Hope this helps.