Blame view

config/database.php 2.62 KB
e77200db5   nologostudio.ru   Initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
  <?php
  
  return [
  
      /*
      |--------------------------------------------------------------------------
      | Default Database Connection Name
      |--------------------------------------------------------------------------
      |
      | Here you may specify which of the database connections below you wish
      | to use as your default connection for all database work. Of course
      | you may use many connections at once using the Database library.
      |
      */
  
      'default' => 'mysql',
  
      /*
      |--------------------------------------------------------------------------
      | Database Connections
      |--------------------------------------------------------------------------
      |
      | Here are each of the database connections setup for your application.
      | Of course, examples of configuring each database platform that is
      | supported by Laravel is shown below to make development simple.
      |
      |
      | All database work in Laravel is done through the PHP PDO facilities
      | so make sure you have the driver for your particular database of
      | choice installed on your machine before you begin development.
      |
      */
  
      'connections' => [
  
          'testing' => [
              'driver' => 'sqlite',
              'database' => ':memory:',
          ],
  
          'mysql' => [
              'driver'    => 'mysql',
              'host'      => $this->app->make('FootyRoom\Config')->get('footyroomMySQL.host'),
              'database'  => $this->app->make('FootyRoom\Config')->get('footyroomMySQL.database'),
              'username'  => $this->app->make('FootyRoom\Config')->get('footyroomMySQL.user'),
              'password'  => $this->app->make('FootyRoom\Config')->get('footyroomMySQL.password'),
              'charset'   => $this->app->make('FootyRoom\Config')->get('footyroomMySQL.charset'),
              'collation' => $this->app->make('FootyRoom\Config')->get('footyroomMySQL.collation'),
              'prefix'    => '',
          ],
  
          'mongodb' => [
              'driver'   => 'mongodb',
              'host'     => 'localhost',
              'port'     => 27017,
              'database' => $this->app->make('FootyRoom\Config')->get('footyroomMongoDB.database'),
          ],
  
      ],
  
      /*
      |--------------------------------------------------------------------------
      | Migration Repository Table
      |--------------------------------------------------------------------------
      |
      | This table keeps track of all the migrations that have already run for
      | your application. Using this information, we can determine which of
      | the migrations on disk have not actually be run in the databases.
      |
      */
  
      'migrations' => 'migrations',
  
  ];