database.php 3.26 KB
Newer Older
1 2 3 4 5 6
<?php

return array(

	/*
	|--------------------------------------------------------------------------
7 8 9 10 11 12 13 14 15 16 17 18 19 20
	| 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,

	/*
	|--------------------------------------------------------------------------
21 22 23 24 25 26 27 28 29 30 31 32 33 34
	| 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,

	/*
	|--------------------------------------------------------------------------
35 36 37
	| Default Database Connection
	|--------------------------------------------------------------------------
	|
38 39 40 41
	| 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.
42 43 44
	|
	*/

45
	'default' => 'mysql',
46 47 48 49 50 51

	/*
	|--------------------------------------------------------------------------
	| Database Connections
	|--------------------------------------------------------------------------
	|
52 53 54
	| 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.
55
	|
56 57 58
	| 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.
59 60 61 62 63 64 65 66
	|
	*/

	'connections' => array(

		'sqlite' => array(
			'driver'   => 'sqlite',
			'database' => 'application',
67
			'prefix'   => '',
68 69 70 71 72 73 74
		),

		'mysql' => array(
			'driver'   => 'mysql',
			'host'     => 'localhost',
			'database' => 'database',
			'username' => 'root',
Taylor Otwell committed
75
			'password' => '',
76
			'charset'  => 'utf8',
77
			'prefix'   => '',
78 79 80 81 82 83 84
		),

		'pgsql' => array(
			'driver'   => 'pgsql',
			'host'     => 'localhost',
			'database' => 'database',
			'username' => 'root',
Taylor Otwell committed
85
			'password' => '',
86
			'charset'  => 'utf8',
87
			'prefix'   => '',
88 89
		),

90 91 92 93 94
		'sqlsrv' => array(
			'driver'   => 'sqlsrv',
			'host'     => 'localhost',
			'database' => 'database',
			'username' => 'root',
Taylor Otwell committed
95
			'password' => '',
96
			'prefix'   => '',
97 98
		),

99 100
	),

101 102 103 104 105 106 107
	/*
	|--------------------------------------------------------------------------
	| 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
108
	| APC or memcached. All the cool kids are using it.
109
	|
110
	| To get the scoop on Redis, check out: http://redis.io
111 112 113 114 115 116 117 118 119
	|
	*/

	'redis' => array(

		'default' => array('host' => '127.0.0.1', 'port' => 6379),

	),

120
);