Complete the code to set the default database connection in Laravel's config file.
'default' => '[1]',
The 'default' key in config/database.php sets the default database connection. 'mysql' is commonly used.
Complete the code to specify the database host in Laravel's MySQL connection configuration.
'host' => [1],
The host IP '127.0.0.1' is the loopback address commonly used for local database servers.
Fix the error in the database username configuration line.
'username' => env('[1]', 'root'),
The environment variable for the database username in Laravel is DB_USERNAME.
Fill both blanks to configure the database port and charset in Laravel's MySQL connection.
'port' => env('[1]', '3306'), 'charset' => '[2]',
The port environment variable is 'DB_PORT' and the recommended charset is 'utf8mb4' for full Unicode support.
Fill all three blanks to complete the Laravel database connection array keys for strict mode, engine, and prefix.
'strict' => [1], 'engine' => [2], 'prefix' => '[3]',
Strict mode is usually set to true for strict SQL mode. Engine can be null to use default. Prefix is an empty string if no prefix is used.