+ /**
+ * Register a new custom artisan command to be available.
+ */
+ public function registerCommand(Command $command)
+ {
+ /** @var \Illuminate\Foundation\Console\Kernel $consoleKernel */
+ $consoleKernel = app()->make(Kernel::class);
+ $consoleKernel->registerCommand($command);
+ }
+