123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <?php
- return array(
- /*
- |--------------------------------------------------------------------------
- | Database Query Logging
- |--------------------------------------------------------------------------
- |
- | By default, the SQL, bindings, and execution time are logged in an array
- | for you to review. They can be retrieved via the DB::profile() method.
- | However, in some situations, you may want to disable logging for
- | ultra high-volume database work. You can do so here.
- |
- */
- 'profile' => true,
- /*
- |--------------------------------------------------------------------------
- | PDO Fetch Style
- |--------------------------------------------------------------------------
- |
- | By default, database results will be returned as instances of the PHP
- | stdClass object; however, you may wish to retrieve records as arrays
- | instead of objects. Here you can control the PDO fetch style of the
- | database queries run by your application.
- |
- */
- 'fetch' => PDO::FETCH_CLASS,
- /*
- |--------------------------------------------------------------------------
- | Default Database Connection
- |--------------------------------------------------------------------------
- |
- | The name of your default database connection. This connection will used
- | as the default for all database operations unless a different name is
- | given when performing said operation. This connection name should be
- | listed in the array of connections below.
- |
- */
- 'default' => 'mysql',
- /*
- |--------------------------------------------------------------------------
- | Database Connections
- |--------------------------------------------------------------------------
- |
- | All of the database connections used by your application. Many of your
- | applications will no doubt only use one connection; however, you have
- | the freedom to specify as many connections as you can handle.
- |
- | All database work in Laravel is done through the PHP's PDO facilities,
- | so make sure you have the PDO drivers for your particlar database of
- | choice installed on your machine.
- |
- */
- 'connections' => array(
- 'sqlite' => array(
- 'driver' => 'sqlite',
- 'database' => 'application',
- 'prefix' => '',
- ),
- 'mysql' => array(
- 'driver' => 'mysql',
- 'host' => 'localhost',
- 'database' => 'database',
- 'username' => 'root',
- 'password' => '',
- 'charset' => 'utf8',
- 'prefix' => '',
- ),
- 'pgsql' => array(
- 'driver' => 'pgsql',
- 'host' => 'localhost',
- 'database' => 'database',
- 'username' => 'root',
- 'password' => '',
- 'charset' => 'utf8',
- 'prefix' => '',
- ),
- 'sqlsrv' => array(
- 'driver' => 'sqlsrv',
- 'host' => 'localhost',
- 'database' => 'database',
- 'username' => 'root',
- 'password' => '',
- 'prefix' => '',
- ),
- ),
- /*
- |--------------------------------------------------------------------------
- | Redis Databases
- |--------------------------------------------------------------------------
- |
- | Redis is an open source, fast, and advanced key-value store. However, it
- | provides a richer set of commands than a typical key-value store such as
- | APC or memcached. All the cool kids are using it.
- |
- | To get the scoop on Redis, check out: http://redis.io
- |
- */
- 'redis' => array(
- 'default' => array(
- 'host' => '127.0.0.1',
- 'port' => 6379,
- 'database' => 0
- ),
- ),
- );
|