From 6a108fdd3375dcdfd1e1070ed9029d0a257b159d Mon Sep 17 00:00:00 2001 From: Muhittin Tan Date: Wed, 27 Mar 2019 17:57:02 +0300 Subject: [PATCH] make command callable by Artisan::call --- src/LaravelGoogleTranslateServiceProvider.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/LaravelGoogleTranslateServiceProvider.php b/src/LaravelGoogleTranslateServiceProvider.php index 88edcfe..dd8c185 100644 --- a/src/LaravelGoogleTranslateServiceProvider.php +++ b/src/LaravelGoogleTranslateServiceProvider.php @@ -14,11 +14,9 @@ class LaravelGoogleTranslateServiceProvider extends ServiceProvider */ public function boot() { - if ($this->app->runningInConsole()) { - $this->commands([ - TranslateFilesCommand::class - ]); - } + $this->commands([ + TranslateFilesCommand::class + ]); $this->publishes([ __DIR__.'/laravel_google_translate.php' => config_path('laravel_google_translate.php'), ]);