Edited at

自分用 laravelのDB設定用メモ

More than 1 year has passed since last update.


config/database.php

   'mysql' => [

'driver' => 'mysql',
'host' => 'localhost',
'port' => env('DB_PORT', '3306'),
'database' => 'DB名',
'username' =>'MySQL Login用ID',
'password' => 'MySQL Login用pw',
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],


後々調べるのがめんどうなので書いておく