Latest Updates

Documenting code, one commit at a time.

Embracing Filament: Streamlining Testing in Laravel Projects

In modern Laravel projects, choosing the right tools is crucial for efficient development and maintainability. The Reimpact/platform project is undergoing a transition from Nova to Filament, aiming to leverage Filament's capabilities for streamlined administration interfaces. This transition impacts testing strategies, requiring a shift from Nova-specific tests to those aligned with Filament.

Read more
PHP Laravel

Refactoring for Clarity: Removing Redundant Relationships and Enhancing Widget Functionality in Laravel

In the Reimpact/platform project, we're constantly striving for a cleaner, more maintainable codebase. Recently, we undertook a refactoring effort focused on removing unnecessary relationships, improving widget functionality, and ensuring data consistency across tenants.

Removing Non-Existent Relationships

One area identified for improvement was the MassiveUploadWithErrorsResource.

Read more
PHP Laravel CSS

Bypassing Filament CSS Pipeline for Quick Widget Styling

When working with UI frameworks like Filament in Laravel projects, you sometimes encounter situations where the framework's CSS pipeline interferes with custom styling. We recently ran into this issue in the Reimpact platform while developing the QuickLinksWidget.

Filament, being based on Tailwind CSS, compiles its own version of Tailwind. This can lead to inconsistencies if your project's

Read more
PHP Laravel

Schema Updates: Adding Tenant-Specific Columns in Laravel

Introduction

When developing multi-tenant applications using Laravel, managing database schemas can become complex. Each tenant might require specific customizations, including additional columns in existing tables. This post addresses how to handle such scenarios by focusing on adding a homologation_level column to a products table within a tenant-specific schema in the Reimpact platform.

Read more

Fixing an Array-to-String Conversion Error in Breniapp

When developing web applications, unexpected errors can sometimes arise from seemingly simple oversights. This post details how a translation issue in the Breniapp project led to a 500 error and how it was resolved.

The Problem

After a recent update, users reported a 500 error when accessing the /admin page. The error logs indicated an issue related to the __('credits') translation

Read more

Streamlining Marketing Workflows with Centralized System Email Management in Laravel

Introduction

Effective communication is crucial for any application. This post explores the new system email management features added to a Laravel project, focusing on centralizing email configurations and streamlining marketing workflows.

Centralized Email Management

One key improvement is the creation of a centralized page for managing system emails. This provides a single point to

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 Debugging

Debugging User Login Flow in Landing

The landing project focuses on creating a smooth user experience. Recently, efforts have been concentrated on debugging the user login process to ensure a reliable authentication flow.

Identifying the Issue

Debugging user authentication often involves tracking the points at which the process may fail. Logging key events helps diagnose where the user flow is interrupted.

Read more

Campañas de Marketing Multi-Lista con Markdown en Landing

Introducción

El proyecto landing se centra en la creación de una plataforma de marketing. Se ha implementado una nueva funcionalidad para campañas de marketing multi-lista con soporte para Markdown, lo que permite una mayor flexibilidad y facilidad de uso en la creación de campañas.

El Problema

Anteriormente, la creación y gestión de campañas de marketing presentaba las siguientes

Read more