From 803bed67402f83881c402dfbeae7204d90730fc0 Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Mon, 26 Aug 2019 23:23:08 +0200 Subject: [PATCH] Update SelfDiagnosisServiceProvider.php --- src/SelfDiagnosisServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SelfDiagnosisServiceProvider.php b/src/SelfDiagnosisServiceProvider.php index 6cc9e0f..bcb116f 100644 --- a/src/SelfDiagnosisServiceProvider.php +++ b/src/SelfDiagnosisServiceProvider.php @@ -11,10 +11,10 @@ class SelfDiagnosisServiceProvider extends ServiceProvider */ public function boot() { + $this->loadTranslationsFrom(__DIR__.'/../translations', 'self-diagnosis'); + if ($this->app->runningInConsole()) { - $this->loadTranslationsFrom(__DIR__.'/../translations', 'self-diagnosis'); - $this->publishes([ __DIR__.'/../translations' => resource_path('lang/vendor/self-diagnosis'), ], 'translations');