Skip to content

Instantly share code, notes, and snippets.

@outrunthewolf
Created December 17, 2014 12:35
Show Gist options
  • Save outrunthewolf/3658cef85b8c8d7cca89 to your computer and use it in GitHub Desktop.
Save outrunthewolf/3658cef85b8c8d7cca89 to your computer and use it in GitHub Desktop.
Laravel DB Read/Write config
<?php
return array(
'connections' => array(
// Postgres
'pgsql' => array(
'driver' => 'pgsql',
'read' => array(
'host' => 'xxxxx-replica.amazonaws.com'
),
'write' => array(
'host' => 'xxxxx-master.amazonaws.com'
),
'database' => 'xxxxxxx',
'username' => 'xxxxxxx',
'password' => 'xxxxxxx',
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
)
),
// Redis
'redis' => array(
'cluster' => false,
'default' => array(
'host' => 'xxxxxx-redis.amazonaws.com',
'port' => 6379,
'database' => 0,
)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment