Setting unix_socket in Lumen

Solution:

You’ll have to set the config value manually. For example in bootstrap/app.php like this:

$app['config']->set('database.connections.mysql.unix_socket', 'asdf');

Or you can do the same in a Service Provider, it’s up to you.