Sameh Elhawary — Posts on Deploynix | Deploynix Laravel Blog
All posts

Posts by Sameh Elhawary

121 posts on the Deploynix blog.

PHP 8.5 in Production: The Pipe Operator, and Upgrading PHP-FPM Without Downtime

PHP 8.5 in Production: The Pipe Operator, and Upgrading PHP-FPM Without Downtime

PHP 8.5 shipped in November 2025 with the pipe operator, fatal error backtraces, and array_first(). Here's what's actually worth using in a Laravel codebase, plus a zero-downtime playbook for upgrading PHP-FPM from 8.4 to 8.5 on Ubuntu 24.04 with an instant rollback path.

· 20 min read
Building an MCP Server in Laravel: Let AI Agents Talk to Your App Safely

Building an MCP Server in Laravel: Let AI Agents Talk to Your App Safely

Build an MCP server in Laravel with the official laravel/mcp package: tools, resources, prompts, Sanctum authentication, per-tool policies, rate limiting, audit logging, Pest tests, and production deployment. A security-first walkthrough from the Deploynix team.

· 22 min read
Laravel Reverb's New Database Driver: Real-Time WebSockets Without Redis

Laravel Reverb's New Database Driver: Real-Time WebSockets Without Redis

Laravel 13 added a database scaling driver to Reverb, so you can run multi-process WebSockets without Redis. We cover how it works, when to use it, and the full production setup: Supervisor, Nginx TLS, file descriptors, and monitoring.

· 20 min read
Laravel 13's First-Party JSON:API Support: Standards-Compliant APIs Without Packages

Laravel 13's First-Party JSON:API Support: Standards-Compliant APIs Without Packages

Laravel 13 ships first-party JSON:API support: resource classes that handle serialization, sparse fieldsets, relationship inclusion, and pagination links automatically. Here's how the new classes work, when to migrate from classic API Resources, and how to run a compliant API in production.

· 21 min read
You Don't Need Kubernetes for Your Laravel App

You Don't Need Kubernetes for Your Laravel App

A team of 8 spent 60 hours a week maintaining Kubernetes before moving to Docker Compose. For Laravel apps, the case against k8s is even stronger. Here's the boring architecture that actually works, and the rare cases where k8s earns its keep.

· 14 min read
Deploying AI-Powered Laravel Apps: Queues, Streaming, Timeouts

Deploying AI-Powered Laravel Apps: Queues, Streaming, Timeouts

LLM calls run 30-120 seconds and break every default your Laravel server ships with. Queue and Horizon configuration, Nginx streaming, end-to-end timeout budgets, retry safety, and cost tracking for AI workloads in production.

· 16 min read
Your Deploy Pipeline Is an Attack Surface

Your Deploy Pipeline Is an Attack Surface

In May 2026, 700+ compromised Laravel-Lang package versions shipped a credential stealer through Composer. Here's how to harden your Laravel deploy pipeline: --no-scripts, allow-plugins, lockfile discipline, scoped deploy keys, and a full incident checklist.

· 17 min read
Cloud Repatriation for Laravel: From AWS to a $10 VPS

Cloud Repatriation for Laravel: From AWS to a $10 VPS

37signals saved ~$10M leaving AWS, and 86% of CIOs plan to pull workloads back. Here's what your EC2 + RDS + NAT + egress bill really buys a Laravel app, the VPS architecture that replaces it, and a step-by-step migration playbook with a safe DNS cutover.

· 16 min read
FrankenPHP in Production on a Plain VPS: The Real Setup

FrankenPHP in Production on a Plain VPS: The Real Setup

A hands-on guide to running FrankenPHP with Laravel Octane on a plain Ubuntu VPS: installation, a production systemd unit, the Nginx handoff, worker mode gotchas, and the cases where PHP-FPM is still the right call.

· 16 min read
SQLite in Production for Laravel: When One File Wins

SQLite in Production for Laravel: When One File Wins

The honest guide to running SQLite in production for Laravel: the WAL config that matters, backups that don't corrupt, Litestream replication, the atomic-deploy gotcha, and the signals that it's time to move to MySQL or Postgres.

· 14 min read
Upgrading to Laravel 13 in Production with Zero Downtime

Upgrading to Laravel 13 in Production with Zero Downtime

A production playbook for upgrading to Laravel 13 without downtime: PHP pre-flight checks, Composer strategy, additive migrations, atomic symlink deploys, worker restarts, and a rollback plan that actually works.

· 15 min read
Migrating Laravel from Railway, Render, or Fly.io to a VPS

Migrating Laravel from Railway, Render, or Fly.io to a VPS

A step-by-step runbook for moving a Laravel app off Railway, Render, or Fly.io onto your own VPS: env export, database migration, cutover, rollback plan, and a before/after cost comparison.

· 16 min read