Latest Updates

Documenting code, one commit at a time.

Java PHP 10 posts
×
PHP MySQL Laravel

Tenant-Based Billing: Fixing Cashier Customer Model

Introduction

After consolidating billing to a tenant-based system (Phase 3), we encountered an issue with the Cashier package. The default customer model was still set to User, causing errors when Stripe webhook events triggered.

The Problem

The stripe_id column, expected by Cashier, was not found because it was looking in the User model instead of the Tenant model.

Read more

EcoRuta Form Redesign: Modernizing the User Interface with a Focus on Dark Mode

Introduction

The EcoRuta form, used for managing certified recycling routes, has undergone a significant redesign. This update focuses on modernizing the user interface, improving the user experience, and adding dark mode support to align with the Landing module's design patterns.

Key Changes

The redesign includes several key improvements:

  • Layout Update: The form now utilizes
Read more

Enhancements to AI Settings and Post Generation Access Control

Overview

This update focuses on refining access control for AI settings and improving the Post Generator navigation within the application. Key changes include restricting access to AI configuration settings to superadmin users only and reordering the Post Generator in the navigation menu for improved user experience.

AI Settings Access Control

To enhance security and prevent

Read more
PHP MySQL JavaScript

Implementing Dual-Write for User/Tenant Data Separation

Introduction

Our application initially stored user-specific data directly within the Tenant model. As we've grown, the need for a more scalable and maintainable solution became apparent. To address this, we embarked on a project to separate user profiles into a dedicated table within each tenant's schema.

The Challenge

Storing user data directly in the Tenant model created several

Read more
PHP Security

Dependency Updates: Enhancing Platform Security and Stability

Introduction

Regularly updating dependencies is crucial for maintaining the security and stability of our platform. Recent efforts have focused on upgrading key packages to address potential vulnerabilities and improve overall performance.

Key Updates

This update includes the following significant dependency upgrades:

  • nikic/php-parser: Updated from v5.6.2 to v5.7.0.
Read more

Extending Horizon Job Retention for Enhanced Monitoring

Introduction

We've increased the retention period for jobs within Laravel Horizon, our Redis-powered queue monitoring dashboard. This enhancement provides a more comprehensive view of queue activity, aiding in debugging and performance analysis.

The Problem

Previously, Horizon was configured to trim recent, pending, and completed jobs after only 60 minutes.

Read more