Skip to content

Commit

Permalink
make command callable by Artisan::call
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmuhittin authored Mar 27, 2019
1 parent 3d97477 commit 6a108fd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/LaravelGoogleTranslateServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
]);
Expand Down

0 comments on commit 6a108fd

Please sign in to comment.