Latest Updates

Documenting code, one commit at a time.

Resolving Test Suite Failures Caused by Database Transactions

Introduction

Our test suite was experiencing frequent failures due to database transaction issues. The reconnect() method was causing the PDO connection to close, triggering Laravel's RefreshDatabase trait to reset and resulting in deadlocks and "relation does not exist" errors.

The Challenge

The main challenge was to identify the root cause of the issue and find a solution that would

Read more

Enhancing URL Handling with Tenant Domain Extraction

Introduction

Our application required a more efficient and accurate method for extracting tenant domains to handle URL redirection. The previous implementation had limitations in handling both subdomain-only and full domain formats.

The Challenge

The legacy system had issues with:

  • Incorrect subdomain extraction
  • Inconsistent URL construction
  • Potential errors in redirecting users to
Read more