Latest Updates

Documenting code, one commit at a time.

PHP SEO 10 posts
×

Enhancements to Portfolio Settings and Automation

Portfolio Badges Visibility

The "Show Badges on Portfolio" toggle has been relocated from the Automation Settings to the Portfolio Settings page. This move aligns the feature with its conceptual location, placing portfolio customization options in a more intuitive and accessible area.

// Filament\Pages\PortfolioSettings.php
Toggle::make('visibility_badges')
    ->label(__('filament.
Read more
PHP Queue JavaScript

Improved Retry Handling for AutoSyncGeneratePostJob

Introduction

The AutoSyncGeneratePostJob is crucial for automatically generating posts. Recently, we encountered an issue where rate limits were causing the job to exhaust its retry budget prematurely, leading to job failures even when the underlying issue was temporary.

The Challenge

The original job configuration used a $tries property to define the maximum number of attempts.

Read more
PHP MySQL Laravel

Code Formatting and Database Schema Updates

Overview

Recent development activity focused on code style consistency and updates to the database schema.

Code Formatting

Applied automated formatting fixes using php-cs-fixer. This ensures consistent code style across the project, improving readability and maintainability. The tool automatically adjusts spacing, indentation, and other stylistic elements according to predefined rules.

Read more
PHP MySQL JavaScript

Dashboard Stability: Handling Missing Commits Table

Introduction

The application's dashboard was experiencing crashes for tenants that had not yet run the commits migration. This post details the solution implemented to gracefully handle the absence of the commits table in the tenant schema, preventing dashboard failures.

The Problem

When the dashboard attempted to query the commits table to display user activity and calculate API

Read more

Streamlining Filament Navigation: Enhancing User Experience

Overview

This update focuses on improving the user experience within the Filament admin panel by reorganizing the navigation structure. Specifically, resources related to support and feedback have been relocated to a dedicated 'Support' navigation group.

Motivation

The primary goal is to declutter the 'System' navigation group. By moving support-related resources to their own group, the

Read more
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