From 769ec16f895833ccf5780cc79111c9bf2c4f38dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Tue, 13 Aug 2019 18:36:41 +0200 Subject: [PATCH] Fix #89 (#90) --- src/TenancyServiceProvider.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/TenancyServiceProvider.php b/src/TenancyServiceProvider.php index 233b87bb..4ac33bd5 100644 --- a/src/TenancyServiceProvider.php +++ b/src/TenancyServiceProvider.php @@ -22,15 +22,13 @@ class TenancyServiceProvider extends ServiceProvider */ public function boot() { - if ($this->app->runningInConsole()) { - $this->commands([ - Run::class, - Seed::class, - Migrate::class, - Rollback::class, - TenantList::class, - ]); - } + $this->commands([ + Run::class, + Seed::class, + Migrate::class, + Rollback::class, + TenantList::class, + ]); $this->publishes([ __DIR__ . '/config/tenancy.php' => config_path('tenancy.php'),