Latest Updates

Documenting code, one commit at a time.

Scaling with Schemas: Multi-Tenancy Migration in Laravel

The Reimpact platform is undergoing a significant architectural shift, moving from a MySQL row-level multi-tenancy model to a more robust PostgreSQL schema-per-tenant setup. This post dives into the key considerations and steps involved in this migration, leveraging Laravel and Filament.

The Motivation for Schema-Based Tenancy

Row-level multi-tenancy in MySQL, while initially simpler to

Read more

Multi-Tenancy with PostgreSQL Schemas in Laravel

Introduction

When building multi-tenant applications, choosing the right architecture is critical. This post explores how to leverage PostgreSQL schemas within a Laravel application to achieve tenant isolation, enhance security, and improve scalability.

The Multi-Tenant Challenge

Traditional multi-tenant approaches often involve sharing a single database and distinguishing tenants by a

Read more

Managing Configuration in Breniapp

Introduction

In the Breniapp project, maintaining a clean and synchronized configuration across different environments is crucial for stability and developer productivity. This post outlines recent changes focused on refining environment variables, specifically around OpenAI integration, Stripe price IDs, and session security.

Streamlining Environment Variables

One key aspect of managing

Read more
PHP Service Layer

Navigating Merge Conflicts in Collaborative Projects

When working on collaborative projects like the landing page project, merge conflicts are almost inevitable. Understanding how to resolve them effectively is crucial for maintaining a smooth workflow.

Understanding Merge Conflicts

Merge conflicts arise when multiple developers modify the same lines of a file or when one developer modifies a file while another deletes it.

Read more
PHP Stripe

Streamlining Subscription Management and Credit Purchases in Breniapp

Introduction

Managing subscriptions and in-app credits can be complex, especially when integrating with payment gateways like Stripe. Breniapp is enhancing its platform to provide a smoother experience for both administrators and users by focusing on plan management and credit purchasing.

Plan Deletion and Stripe Product Archival

Previously, deleting a plan might have left lingering data

Read more