Latest Updates

Documenting code, one commit at a time.

Evolving Data Structures in Platform Notifications

The platform project is undergoing continuous improvement to enhance its notification system.

The Challenge: Data Structure Evolution

Initially, the notification system stored data in a simple text column. However, as the platform evolved, the need for richer, structured data within notifications became apparent. This required a transition to a more flexible data type.

The Solution:

Read more

Enhancing Database Interactions in Reimpact Platform with Notifications and Error Handling

The Reimpact platform is focused on streamlining various business processes. Recent updates enhance the platform's interaction with databases, specifically focusing on user notifications and improved error handling for foreign key violations in both MySQL and PostgreSQL.

Database Notifications

A key improvement involves enabling database notifications within Filament panels.

Read more

Tenant Schema Resetting Too Early: A Laravel Livewire Gotcha

The Reimpact/platform project focuses on providing a multi-tenant application structure. Recently, we encountered an issue with tenant database schemas being reset prematurely during Livewire updates. This post dives into the problem and the solution implemented.

The Problem

In a multi-tenant application, each tenant typically has its own database schema. We use middleware to set the correct

Read more

Tenant Schema Optimization in Reimpact Platform's Packaging Module

The Reimpact platform is undergoing continuous improvements to enhance its multi-tenancy capabilities. Recent work focuses on optimizing database queries within the Packaging module, ensuring data isolation and preventing errors in tenant-specific schemas.

The Problem

In a multi-tenant environment, each tenant operates within its own schema. The Packaging module, responsible for managing

Read more

Simplifying Tenant Management in Reimpact Platform

The Challenge

In multi-tenant applications, managing data isolation is crucial. The Reimpact platform, designed for managing various industrial processes, initially relied on company_id filtering within each database table to achieve this isolation. This approach, while functional, introduced redundancy and complexity across our Eloquent models.

The Solution: PostgreSQL Schema Isolation

Read more

Enhancing Tenant Management and File Handling in Laravel Applications

Introduction

When building multi-tenant applications with Laravel, ensuring proper tenant context and efficient file handling are critical. Recent updates to the Reimpact platform focus on improving these aspects, streamlining tenant schema management and simplifying large file uploads.

Tenant Schema Isolation Improvements

Proper tenant schema isolation is essential for maintaining data

Read more
PHP AI

Optimizing AI Model Costs in Breniapp

Introduction

In Breniapp, managing the costs associated with AI models is crucial for maintaining profitability and efficiency. This post discusses recent adjustments made to the pricing structure of several AI models to align with current API rates and eliminate unnecessary base costs.

The Problem: Misaligned Pricing

The initial pricing configuration for certain AI models in Breniapp

Read more

Improving Application Stability and Performance in Laravel Projects

Introduction

Maintaining a stable and performant application requires constant attention to detail. This post highlights several key improvements made to a Laravel project, focusing on resolving PHPStan errors, fixing test failures, and preventing database deadlocks. These changes contribute to a more robust and reliable application.

Addressing Static Analysis Errors

Static analysis

Read more
PHP AI

Enhancing Breniapp's Layer Editing with AI-Powered Prompts

Introduction

The Breniapp project is focused on providing users with creative tools. A recent enhancement streamlines the layer editing process, particularly for background, text, and logo elements, by introducing dedicated modal dialogs and AI-powered regeneration.

The Feature

The core update involves replacing the previous single-interface approach with distinct modal dialogs for each

Read more

Automatización de la Asistencia de Respuesta con IA en LinkedIn

Introducción

El proyecto landing se enfoca en mejorar la interacción en LinkedIn mediante el uso de inteligencia artificial. Se ha desarrollado una funcionalidad para asistir en la generación de respuestas contextuales, optimizando la comunicación y ahorrando tiempo a los usuarios.

El Problema

Responder de manera efectiva y personalizada en LinkedIn puede ser un desafío, especialmente

Read more