Latest Updates

Documenting code, one commit at a time.

English 10 posts
×

Merging Branches and Resolving Conflicts in Landing Project

This post discusses the process of merging branches in the landing project, focusing on how to handle conflicts that arise during the merge.

The Merge

Recently, a merge operation was performed, bringing together changes from the worktree-agent-a711e2dd branch into the main development branch. This is a standard practice in collaborative software development, allowing developers to

Read more
PHP Git branch

Branching Out: Simplifying Worktrees in a PHP Project

Navigating complex feature development often involves juggling multiple branches, leading to potential conflicts and a cluttered workflow. This is a story about how incorporating worktrees streamlined branch management in a PHP project.

The Challenge

Our team faced difficulties when working on several features concurrently. Switching between branches frequently resulted in lost context,

Read more
PHP AI

AI Rewrite Service: More Than Just String Manipulation

When connecting quick actions to an AI service, developers must move beyond simple string manipulation and leverage the power of AI for more sophisticated content transformations.

From Naive Manipulation to AI-Powered Rewrites

Initially, basic functionalities like shortening content or changing a call to action (CTA) might seem achievable through simple string truncation or concatenation.

Read more
PHP JavaScript

Preserving Element Dimensions with Alpine.js Bindings

When working with dynamic styling in Alpine.js, it's crucial to understand how attribute bindings interact with existing styles. A common pitfall is unintentionally overwriting existing style attributes when only intending to modify a specific style property.

The Problem: Overwriting Styles

The issue arises when using the :style binding in Alpine.js. If the expression bound to :style

Read more
PHP

Tenant Isolation: Querying Data Directly

When building multi-tenant applications, data isolation is crucial. A common approach is to use separate database schemas for each tenant. However, this can introduce complexity when querying data, especially when dealing with relationships between tables.

The Problem: Relationships in Tenant Schemas

In a multi-tenant application, each tenant's data resides in its own schema.

Read more
PHP Platform

Tenant Scoping Adjustments in Platform Rates

Introduction

The Reimpact platform involves managing various resources, including rate configurations. Recent updates address how these rates are scoped within a multi-tenant environment.

The Issue

Previously, the platform attempted to scope rate resources to a specific tenant (company) using a relationship that no longer existed. This caused errors and prevented proper rate management.

Read more
PHP Filament

Fixing Late Static Binding Issues in Filament Resources

When developing with Filament, you might encounter issues with PHP's late static binding, especially when working with resources. A recent update to the platform project addressed such a problem, improving the way queries are handled within resource classes.

The issue arose from directly calling Resource::getEloquentQuery(). This approach breaks PHP's late static binding, causing

Read more

Refactoring Primary Keys with Foreign Key Constraints in Reimpact Platform

When refactoring database schemas, developers often encounter challenges with primary and foreign key relationships. In the Reimpact platform, a recent update focused on modifying a primary key (priority_product ID) while ensuring existing foreign key references remained valid. This process highlights the importance of managing dependencies during schema alterations.

The Problem

Read more