app->runningInConsole()) { $this->commands([ Test2Command::class ]); } } public function register() { parent::register(); $this->commands([ Test2Command::class ]); } }