diff --git a/src/PackageServiceProvider.php b/src/PackageServiceProvider.php index 58a1b30..d4e0201 100644 --- a/src/PackageServiceProvider.php +++ b/src/PackageServiceProvider.php @@ -15,9 +15,11 @@ class PackageServiceProvider extends ServiceProvider */ public function boot() { - Helpers::copyDir(__DIR__ . '/../resources/lang/', resource_path('lang')); + if ($this->app->runningInConsole()) { + Helpers::copyDir(__DIR__ . '/../resources/lang/', resource_path('lang')); - $this->loadJSONTranslationsFrom(resource_path('lang')); + $this->loadJSONTranslationsFrom(resource_path('lang')); + } } }