original_string: public function handle(GenerateApiTokenCommand $command)
      {
          $user = $command->user;
  
          $user->update(['api_key' => User::generateApiKey()]);
  
          event(new UserRegeneratedApiTokenEvent($user));
      }
code: public function handle(GenerateApiTokenCommand $command)
      {
          $user = $command->user;
  
          $user->update(['api_key' => User::generateApiKey()]);
  
          event(new UserRegeneratedApiTokenEvent($user));
      }
code_tokens: public function handle ( GenerateApiTokenCommand $ command ) { $ user = $ command -> user ; $ user -> update ( [ 'api_key' => User :: generateApiKey ( ) ] ) ; event ( new UserRegeneratedApiTokenEvent ( $ user ) ) ; }
docstring: Handle the generate api key command.
  
  @param \CachetHQ\Cachet\Bus\Commands\User\GenerateApiTokenCommand $command
  
  @return void
docstring_tokens: Handle the generate api key command .