Latest Updates

Documenting code, one commit at a time.

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

Maintaining User Locale Across AJAX Requests in Breniapp

Introduction

In single-page applications built with frameworks like Livewire, maintaining the correct user locale across all interactions can be tricky. The Breniapp project encountered an issue where the user interface language would revert to the browser's default (often English) during AJAX requests, even if the user had initially selected a different language.

The Problem: Locale

Read more

Secure and Validate Locale Handling in PHP Applications

Introduction

When building internationalized applications, handling user locales correctly is crucial. This post delves into how to validate and securely manage locale settings in PHP applications, focusing on preventing potential issues arising from stale or malformed locale data.

The Problem: Stale Locale Cookies

Encrypted cookies, particularly those storing locale information, can

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

Implementing Middleware for Request Handling in PHP

Introduction

This post explores the implementation of middleware in PHP applications for request handling. Middleware provides a powerful mechanism to intercept and modify requests and responses, enabling developers to build more modular and maintainable applications.

Understanding Middleware

Middleware functions sit in between the application's core logic and the incoming requests.

Read more