title: Laravel Database charset and collation
body: <p>In Laravel, Everytime, while running the website, </p>
  
  <p>"set names 'utf8' collate 'utf8_unicode_ci'"</p>
  
  <p>is executing.</p>
  
  <p>How can I avoid this ?
  Instead of doing this in the code. We have configured in the database itself.
  How can I remove charset and collation in database configuration ?</p>
  
  <pre><code>&gt; config/database.php
  &gt; 
  &gt; 'database' =&gt; [
  &gt;     'driver'    =&gt; 'mysql',
  &gt;     'host'      =&gt; env('DB_HOST', 'localhost'),
  &gt;     'port'      =&gt; env('DB_PORT'),
  &gt;     'database'  =&gt; env('DATABASE'),
  &gt;     'username'  =&gt; env('DB_USERNAME', 'forge'),
  &gt;     'password'  =&gt; env('DB_PASSWORD', ''),
  &gt;     'charset'   =&gt; 'utf8', // Need to remove or make ''
  &gt;     'collation' =&gt; 'utf8_unicode_ci', // Need to remove or make ''
  &gt;     'prefix'    =&gt; env('DB_PREFIX', ''),
  &gt;     'strict'    =&gt; false, ],
  </code></pre>