Skip to content

Commit

Permalink
explode string channels on stack
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 16, 2020
1 parent 0942a13 commit e5b86f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Log/LogManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ protected function createCustomDriver(array $config)
*/
protected function createStackDriver(array $config)
{
if (is_string($config['channels'])) {
$config['channels'] = explode(',', $config['channels']);
}

$handlers = collect($config['channels'])->flatMap(function ($channel) {
return $this->channel($channel)->getHandlers();
})->all();
Expand Down

0 comments on commit e5b86f2

Please sign in to comment.