Solution:
You’ll have to set the config value manually. For example in bootstrap/app.php like this:
bootstrap/app.php
$app['config']->set('database.connections.mysql.unix_socket', 'asdf');
Or you can do the same in a Service Provider, it’s up to you.