+ /**
+ * Register a new custom artisan command to be available.
+ */
+ public function registerCommand(Command $command)
+ {
+ Artisan::starting(function (Application $application) use ($command) {
+ $application->addCommands([$command]);
+ });
+ }
+