Latest Updates

Documenting code, one commit at a time.

Mitigating XSS Vulnerabilities in Livewire/Alpine.js with @js()

The Problem

In the landing project, we encountered a subtle but significant security issue related to how data was being passed from PHP to JavaScript within our Blade templates. Specifically, when using Livewire and Alpine.js, values containing special characters (like apostrophes in names such as "O'Brien") could break the JavaScript context, leading to unexpected behavior or, worse,

Read more
PHP HTML Email

Improving Email Template Rendering and Campaign Layouts

Introduction

The devlog-ist/landing project recently addressed a couple of key issues in its email functionality: a mismatch in email template placeholder syntax and the lack of a consistent layout for campaign emails. These fixes ensure more reliable and visually appealing email communications.

The Problem

Two primary problems were identified:

  1. **Inconsistent Template
Read more

Improving Feedback Form Accuracy in Landing Pages

Introduction

In web development, capturing accurate context is crucial for debugging and improving user experience. This post addresses an issue encountered in the devlog-ist/landing project where the feedback form was capturing an incorrect URL due to server-side rendering limitations with Livewire.

The Problem: Server-Side URL Capture

When using Livewire, attempting to capture the

Read more
PHP CSS HTML

Enhancing Landing Page Themes with Responsive Education and Language Sections

The landing project focuses on creating engaging and informative landing pages. Recent updates introduce a more intuitive layout for showcasing education and language skills within the retro and nan themes.

The Problem

Previously, the education and language sections were not optimally positioned on the page, nor were they displayed in a way that maximized readability and visual appeal,

Read more

Enhancing Community Project Visibility on Landing Pages

Introduction

The landing project aims to create a user-friendly and informative platform. A key aspect of this is effectively showcasing community projects, making their descriptions readily accessible to visitors.

The Challenge

Previously, project descriptions within the community projects section were not prominently displayed. This made it difficult for users to quickly understand the

Read more
PHP Livewire

Maintaining Session Integrity During Impersonation in Livewire

Introduction

When implementing user impersonation functionality, a common pitfall is inadvertently breaking the user's session. This post addresses an issue in a Reimpact platform where session loss occurred during impersonation due to Livewire's single-page application (SPA) navigation.

The Problem: Session Regeneration and SPA Navigation

The Auth::login() function in PHP regenerates

Read more

Unifying Branding Across Filament Panels in Reimpact Platform

Introduction

Maintaining a consistent brand identity across multiple admin panels can be a challenge. In the Reimpact platform, we faced this issue with our eight Filament panels, each serving different modules. The goal was to ensure a unified look and feel while streamlining maintenance and updates.

The Problem

Previously, each Filament panel had its own branding configuration, leading

Read more