raistie
1 year ago
339
4
Laravel

Create databases in utf8 instead of latin1

Posted 1 year ago by raistie

Hi there,

My config.php database settings are correct in specifying 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci',

However, every time I run php artisan make:database dbname mysql

It creates the database as latin1_swedish_ci

Is there any way to set ALL new databases created as utf8? Why is latin1 the default still?

R

Please sign in or create an account to participate in this conversation.