We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74fbf39 commit a33e25eCopy full SHA for a33e25e
configs/database.php
@@ -0,0 +1,26 @@
1
+<?php
2
+
3
+return [
4
+ /*
5
+ * Connection settings that will be used when no one is specified:
6
+ */
7
+ 'default' => 'mysql',
8
9
10
+ * A simple MySQL connection using PDO.
11
12
+ 'mysql' => [
13
+ 'driver' => \Corviz\Connector\PDO\Connection::class,
14
15
+ //Options may vary according to the current driver.
16
+ //See third party documentation for references.
17
+ 'options' => [
18
+ 'dsn' => 'mysql:host=127.0.0.1;dbname=test;charset=utf8',
19
+ 'user' => 'root',
20
+ 'password' => '',
21
+ //'afterConnect' => function(\PDO $pdo) {
22
+ // //this will be executed after connect
23
+ //},
24
+ ],
25
26
+];
0 commit comments