database.php 2.62 KB
<?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',

];