database.php 3.2 KB
Newer Older
1 2
<?php

3
return [
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

	/*
	|--------------------------------------------------------------------------
	| PDO Fetch Style
	|--------------------------------------------------------------------------
	|
	| By default, database results will be returned as instances of the PHP
	| stdClass object; however, you may desire to retrieve records in an
	| array format for simplicity. Here you can tweak the fetch style.
	|
	*/

	'fetch' => PDO::FETCH_CLASS,

	/*
	|--------------------------------------------------------------------------
	| 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.
	|
	*/

47
	'connections' => [
48

49
		'sqlite' => [
50
			'driver'   => 'sqlite',
51
			'database' => storage_path().'/database.sqlite',
52
			'prefix'   => '',
53
		],
54

55
		'mysql' => [
56 57
			'driver'    => 'mysql',
			'host'      => 'localhost',
58 59
			'database'  => 'forge',
			'username'  => 'forge',
60 61 62 63
			'password'  => '',
			'charset'   => 'utf8',
			'collation' => 'utf8_unicode_ci',
			'prefix'    => '',
64
		],
65

66
		'pgsql' => [
67 68
			'driver'   => 'pgsql',
			'host'     => 'localhost',
69 70
			'database' => 'forge',
			'username' => 'forge',
71 72 73
			'password' => '',
			'charset'  => 'utf8',
			'prefix'   => '',
Bruno Gaspar committed
74
			'schema'   => 'public',
75
		],
76

77
		'sqlsrv' => [
78 79 80 81 82 83
			'driver'   => 'sqlsrv',
			'host'     => 'localhost',
			'database' => 'database',
			'username' => 'root',
			'password' => '',
			'prefix'   => '',
84
		],
85

86
	],
87 88 89 90 91 92 93 94

	/*
	|--------------------------------------------------------------------------
	| 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
Taylor Otwell committed
95
	| the migrations on disk haven't actually been run in the database.
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
	|
	*/

	'migrations' => 'migrations',

	/*
	|--------------------------------------------------------------------------
	| Redis Databases
	|--------------------------------------------------------------------------
	|
	| Redis is an open source, fast, and advanced key-value store that also
	| provides a richer set of commands than a typical key-value systems
	| such as APC or Memcached. Laravel makes it easy to dig right in.
	|
	*/

112
	'redis' => [
113

114
		'cluster' => false,
115

116
		'default' => [
117 118 119
			'host'     => '127.0.0.1',
			'port'     => 6379,
			'database' => 0,
120
		],
121

122
	],
123

124
];