Skip to content

Commit

Permalink
Default events log channel set
Browse files Browse the repository at this point in the history
  • Loading branch information
Paramtamtam committed Jul 19, 2019
1 parent 25e58fe commit 90dbaba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ public function boot(Dispatcher $events, EventsSubscriberContract $subscriber):
protected function registerChannel(): void
{
$this->app->bind('log.events.channel', function (Container $app): string {
return $app->make(ConfigRepository::class)->get('logging.events_channel', env('EVENTS_LOG_CHANNEL'));
return $app
->make(ConfigRepository::class)
->get('logging.events_channel', env('EVENTS_LOG_CHANNEL', 'default'));
});
}

Expand Down

0 comments on commit 90dbaba

Please sign in to comment.