Created
November 13, 2015 02:17
-
-
Save kelixlabs/5e7737b4fa4904478a0f to your computer and use it in GitHub Desktop.
Laravel 4.2 PDO persistent connection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
/* other settings removed for brevity */ | |
'connections' => array( | |
'mysql' => array( | |
'driver' => 'mysql', | |
'host' => 'localhost', | |
'database' => 'database', | |
'username' => 'root', | |
'password' => '', | |
'charset' => 'utf8', | |
'collation' => 'utf8_unicode_ci', | |
'prefix' => '', | |
'options' => array( | |
PDO::ATTR_PERSISTENT => true, | |
), | |
), | |
/* other connections removed for brevity */ | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment