diff --git a/src/Illuminate/Log/LogManager.php b/src/Illuminate/Log/LogManager.php index b43afbacf435..7080e35c4b56 100644 --- a/src/Illuminate/Log/LogManager.php +++ b/src/Illuminate/Log/LogManager.php @@ -213,7 +213,9 @@ protected function callCustomCreator(array $config) */ protected function createCustomDriver(array $config) { - return $this->app->make($config['via'])->__invoke($config); + $f = is_callable($via = $config['via']) ? $via : $this->app->make($via); + + return $f($config); } /**