Latest Updates

Documenting code, one commit at a time.

PHP Filament

Filament v5 Action Updates in Reimpact Platform

The Reimpact platform has undergone an update to align with Filament v5, specifically addressing changes in how actions are handled within tables. This adjustment ensures compatibility and leverages the latest features offered by the framework.

The Transition from Tables\Actions\Action

In previous versions of Filament, actions within tables were managed using Tables\Actions\Action.

Read more

Enhancements to Tenant Warehouse Management in Platform

Introduction

The Reimpact platform is undergoing improvements to its multi-tenancy architecture, specifically focusing on tenant warehouse management. This involves refining database queries and updating tenant schemas for better isolation and data integrity.

The Problem

Previously, the GeneratedReportResource was incorrectly querying the company_id on tenant-specific warehouse

Read more

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

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

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