code: protected function registerCommand($command)
      {
          $abstract = "command.artisan.beans.$command";
          $commandClass = "\\Pvm\\ArtisanBeans\\Console\\{$command}Command";
  
          $this->app->singleton($abstract, function ($app) use ($commandClass) {
              return new $commandClass();
          });
  
          $this->commands($abstract);
      }
docs: Register a console command.
  
  @param $command