title: How to divide read/write database setting in Laravel?
body: <p>This is recommended regulation for database divide setting in Laravel.</p>
  
  <pre><code>'mysql' =&gt; [
      'read' =&gt; [
                    'host' =&gt; '192.168.1.1',
                ],
     'write' =&gt; [
                    'host' =&gt; '196.168.1.2'
                ],
        'sticky'    =&gt; true,
        'driver'    =&gt; 'mysql',
        'database'  =&gt; 'database',
        'username'  =&gt; 'root',
        'password'  =&gt; '',
        'charset'   =&gt; 'utf8mb4',
        'collation' =&gt; 'utf8mb4_unicode_ci',
        'prefix'    =&gt; '',
    ],  
  </code></pre>
  
  <p>But if I want to use different access information as DB_NAME, USER_ID, PASS etc to each read/write databases, then how could I make it?  Thank you.</p>