Hi,
I'm using Eloquent ORM outside of laravel. Its with SLIM Framework.
I'm trying to control the number of new connections threads being opened for every query i make via Eloquent ORM.
My approach is to make persistent connections with MySql DB using the following config.
'mysql' => array(
'read' => [
'host' => '192.168.1.206',
],
'write' => [
'host' => '192.168.1.206',
],
'driver' => 'mysql',
'database' => 'xxxx',
'username' => 'xxxxx',
'password' => 'xxxxxxxxxxxxxxxxxxxx',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'options' => array(
PDO::ATTR_PERSISTENT => true,
),
),
But i'm not sure
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community