Laravel & PHP Articles

In-depth tutorials and guides for Laravel framework and PHP development, covering everything from basics to advanced topics like Laravel Octane.

laravelphpoctaneframeworkweb development

The Ultimate Laravel + PostgreSQL Query Optimization Checklist (Part 7)

intermediate8 min

August 20, 2025 (3mo ago)

A practical end-to-end checklist to diagnose and optimize any Laravel query: classify short vs long, apply index and N+1 fixes, streamline long report queries, and escalate with CTEs, views, JSON functions, and partitioning.

#blog#web-development#laravel#postgresql#performance

Solving N+1 for Good in Laravel: The NORM JSON Function Pattern (Performance Part 6)

intermediate6 min

August 19, 2025 (3mo ago)

How to eliminate N+1 queries in complex Laravel endpoints by offloading relationship assembly to a PostgreSQL JSON-building function (NORM pattern) and returning one predictable JSON payload.

#blog#web-development#laravel#postgresql#performance

Architecting Complexity: CTEs, Views, and Partitioning in Laravel (Performance Part 5)

advanced8 min

August 18, 2025 (3mo ago)

How and when to use PostgreSQL CTEs, database views, and table partitioning in a Laravel app to tame complex queries, encapsulate reusable logic, and keep massive tables fast.

#blog#web-development#laravel#postgresql#cte

Taming Long Queries & Joins: Winning Strategies for Reports (Laravel + PostgreSQL Performance Part 4)

intermediate7 min

August 17, 2025 (3mo ago)

How to optimize report-style 'long queries' in Laravel with PostgreSQL: when Seq Scans are good, how hash joins work, using EXISTS for semi/anti-joins, and structuring GROUP BY to avoid repeated large table scans.

#blog#web-development#laravel#postgresql#joins

Short Queries, Massive Tables: Indexes That Make Laravel Fly (Laravel + PostgreSQL Performance Part 3)

intermediate7 min

August 16, 2025 (3mo ago)

Why once-fast find() and where() calls slow down at scale, how PostgreSQL chooses Seq Scan vs Index Scan, and the exact indexing habits to keep short queries instant on millions of rows.

#laravel#postgresql#indexes#performance#eloquent

What Happens When You Run ->get()? Reading PostgreSQL Execution Plans (Laravel + PostgreSQL Performance Part 2)

intermediate6 min

August 15, 2025 (3mo ago)

A practical walkthrough for Laravel devs on what PostgreSQL does after Eloquent sends a query: parse, plan, execute. Learn how to extract SQL, run EXPLAIN, and decode Seq Scan cost, rows, and width so you can spot missing indexes early.

#laravel#postgresql#eloquent#performance#explain

Beyond Eloquent: Think Like a Database (Laravel + PostgreSQL Performance Part 1)

intermediate4 min

August 14, 2025 (3mo ago)

Eloquent is elegant, but every Laravel developer eventually hits performance walls caused by hidden SQL inefficiencies. This first part explains the mindset shift from imperative PHP to declarative SQL, exposes pitfalls like N+1 and the 'shopping list problem,' and gives a simple first habit: inspect the actual queries your code generates.

#laravel#postgresql#eloquent#performance#query-optimization

Building a Laravel News Portal with Laravolt: The Fastest CRUD Generation

beginner5 min

July 27, 2025 (4mo ago)

Learn how to leverage Laravolt's Thunderclap to generate production-ready CRUD interfaces in minutes, not hours. This article demonstrates the power of intelligent code generation for building a Laravel news portal with enterprise-grade quality standards.

#laravel#laravolt#introduction

How to Start a Laravel Project for Maximum Speed & Maintainability?

beginner5 min

July 26, 2025 (4mo ago)

Learn the Laravolt way to kickstart your Laravel projects with enterprise-grade quality standards. This beginner-friendly guide covers everything from installation to database design, model relationships, and testing—all designed to help you build robust applications quickly and efficiently.

#laravel#laravolt#introduction

Achieving PHPStan Level 9: A Journey to World-Class Laravel Code Quality

Intermediate10 minutes

July 25, 2025 (4mo ago)

Discover how Laravolt achieved PHPStan level 9, enhancing code quality and maintainability. Learn our journey, strategies, and how you can implement strict standards in your Laravel projects.

#PHPStan#Laravel#Code Quality#Static Analysis#Best Practices

Laravel Octane 05: Production Deployment & Best Practices for High-Performance Laravel

advanced20 min

July 18, 2025 (4mo ago)

Master the final steps of deploying your high-performance Laravel Octane application with Nginx, Supervisor, and essential optimizations. Learn how to set up a production-like environment locally, manage Octane processes, and apply best practices for a robust deployment.

#laravel#octane#swoole#production#deployment

Laravel Octane 04: Advanced Caching, Database Optimization, and Monitoring with Swoole

advanced18 min

July 17, 2025 (4mo ago)

In this article, we explore advanced caching strategies with Laravel Octane, database optimization techniques, and monitoring tools to ensure your high-performance Laravel application runs smoothly in production.

#laravel#octane#swoole#caching#database

Laravel Octane 03: Concurrency and Asynchronous Workflows with Swoole

intermediate15 min

July 16, 2025 (4mo ago)

Explore the power of concurrency and asynchronous workflows in Laravel Octane with Swoole. Learn how to create a high-performance application that handles multiple tasks simultaneously, improving responsiveness and performance.

#laravel#octane#swoole#concurrency#async

Laravel Octane 02: Setting Up Your High-Performance Environment with Sail

beginner12 min

July 15, 2025 (4mo ago)

Learn how to set up a high-performance Laravel Octane environment using Sail and Swoole. This guide walks you through the installation process, configuration, and best practices for development.

#laravel#octane#swoole#sail#setup

Laravel Octane 01: Unlocking Supersonic Speed: An Introduction to Swoole

beginner8 min

July 14, 2025 (5mo ago)

A beginner-friendly guide to understanding Laravel Octane and Swoole, focusing on practical performance improvements for your Laravel applications.

#laravel#octane#swoole#performance#introduction

Rebuilding Laravel's `old()` and `@error` Magic in Hypervel — The Real Way It Works

advanced15 min

July 9, 2025 (5mo ago)

Learn how to recreate Laravel's form error and old input behavior in Hypervel, a coroutine-native PHP framework. This guide walks through validation, session flashing, and displaying errors in Blade views without hidden magic.

#hypervel#laravel#forms#validation#sessions

Step-by-Step Guide: Creating a Web Authentication System in Hypervel

intermediate25 min

June 17, 2025 (5mo ago)

Learn how to build a secure web authentication system using Hypervel, covering user registration, login, and session management.

#hypervel#laravel#authentication#security#sessions