Everything on Laravel.
47 articles tagged Laravel — sorted newest first.
Handling Stripe Disputes and Chargebacks in Laravel
Chargebacks happen to every SaaS eventually. Here's how to listen for Stripe dispute webhooks, auto-collect evidence, and submit it programmatically before the response window closes.
Stripe Connect Express Onboarding in Laravel
Build marketplace-style payments in Laravel using Stripe Connect Express — onboard sellers via Stripe's hosted flow, then route funds and take your platform fee.
Laravel Telescope vs Debugbar vs Pulse — Which Monitoring Tool When
Laravel ships three monitoring tools and most teams install all three without knowing which does what. Here's when to reach for each one.
Stripe Pricing Tables with Laravel — Embed Checkout Without Custom UI
Stripe's Pricing Table handles your plan cards, billing period toggle, and promo codes — no custom UI needed. Here's how to embed it in Laravel and wire up customer tracking.
GitHub Actions Matrix Testing for Laravel — PHP × Database Combos
Stop testing against one PHP version and one database. Here's the copy-paste GitHub Actions matrix workflow that covers PHP 8.2–8.4 against MySQL, PostgreSQL, and SQLite in one go.
Building a RAG Pipeline with Laravel AI SDK and pgvector
Build a complete retrieval-augmented generation pipeline in Laravel — from embedding documents and storing vectors in pgvector to generating grounded answers with the AI SDK.
Laravel Boost MCP — Let AI Agents Understand Your Codebase
AI coding assistants stumble on Laravel's magic methods and facades. Boost is a local MCP server that gives them structured context so they stop guessing.
PHPStan Level 10 in Laravel — Fix the 5 Most Common Errors
Bumped Larastan to level 10 and got 300 new errors? Here are the five patterns you'll see again and again — and the exact fix for each.
The Complete Guide to Laravel 13 JSON:API Resources
Laravel 13 ships first-party JSON:API resources that handle spec-compliant serialization, relationships, sparse fieldsets, and compound documents out of the box. This guide walks through building a complete API using the new JsonApiResource class — from first resource to production-hardened endpoints.
Laravel MCP Server — Expose Your App to AI Clients in 15 Minutes
The laravel/mcp package turns your Laravel app into an MCP server with a few artisan commands — no Node, no Python, just familiar middleware and routing.
Laravel 13 PHP Attributes: Cleaner Models, Jobs, and Commands
Laravel 13 ships opt-in PHP attribute syntax across 36+ framework locations. Here's what changed for models, jobs, and Artisan commands — with zero migration required.
Ditching Passwords: Setting Up Passkeys in Laravel 13
Passkeys are phishing-resistant, require no remembered secrets, and the browser handles the crypto. Here's how to add them to a Laravel 13 app in under an hour.
Handling Stripe Subscription Lifecycle Events in Laravel: Beyond Webhook Verification
Signature verification is step one. Here's what to do with the six Stripe subscription lifecycle events that actually matter — what Cashier handles for you and how to write the rest.
Dockerising Your Laravel App for Kubernetes: From Dockerfile to Running Pod
Take a Laravel app from Docker Compose to a running Kubernetes pod — covering the production Dockerfile, Nginx+PHP-FPM setup, and the K8s manifests you actually need.
Laravel Prism Tool Calling: Build AI Agents That Actually Do Things
Prism's tool calling turns a text-generating LLM into an agent that can actually *do* things — query your database, hit an external API, or dispatch a queued job.
Clean Up Your Jobs Config With Laravel 13's Queue::route()
Laravel 13 adds Queue::route() — a single place in your service provider to declare which queue and connection every job class uses. Here's how it works.
Upgrading From Laravel 12 to Laravel 13: The Practical Guide
The Laravel 13 upgrade is mostly painless — but three config areas will silently change how your app behaves if you skip them. Here's what actually changed and what's worth adopting.
The Complete Guide to the Laravel AI SDK in Laravel 13
Laravel 13 ships a first-party AI SDK that replaces the patchwork of vendor SDKs and community packages. Here's how to use every capability — agents, streaming, structured output, tools, embeddings and RAG — in one working project.
Getting Started With Laravel Prism: Add AI to Any Laravel App in Minutes
Prism gives you a provider-agnostic fluent interface for OpenAI, Anthropic, Ollama, and more inside any Laravel app. Here's how to go from zero to your first AI response.
Real-Time Notifications with Laravel Reverb and Echo
Reverb is Laravel's free, first-party WebSocket server. Here's how to go from zero to live browser notifications — private channels, Echo, and an Alpine.js toast — without touching Pusher.
Laravel Vapor vs Laravel Forge in 2026: Which Deployment Platform Should You Choose?
Both are first-party Laravel deployment tools. They solve completely different problems. Here's the decision framework I use.
Stop Laravel Queue Workers from Leaking Memory with --max-jobs and --max-time
Laravel queue workers are long-running daemons — and daemons drift. Here's how to configure them to self-restart before they start misbehaving.
Building an Automated Bug-Fixing Pipeline with Claude Cowork
A Claude Cowork scheduled task that reads Sentry errors, triages them via Linear, implements fixes in your Laravel codebase, and opens a GitHub PR — without you lifting a finger until review.
Stripe Checkout sessions in Laravel — without Cashier
Laravel Cashier is excellent for subscriptions, but one-time payments don't need that overhead. Here's how to wire up Stripe Checkout directly with the PHP SDK.
Optimising Laravel Docker images with multi-stage builds
A single-stage Dockerfile for Laravel ends up with 800 MB+ images full of build tools you don't need in production. Multi-stage builds fix that — here's how.
Fine-grained rate limiting on Laravel API routes
Slapping throttle:60,1 on every route treats your free-tier users and enterprise customers identically. Here's how to do it properly with named rate limiters.
Replacing String Constants with PHP Backed Enums in Laravel Models
String constants like STATUS_PENDING are typo-prone, unautocompleted, and impossible to enumerate exhaustively. PHP backed enums fix all of that — and Laravel has native support throughout.
PHP Readonly Classes as Value Objects in Laravel
Primitive obsession is one of those code smells that's easy to ignore — until you're debugging which integer is pounds and which is pence. PHP readonly classes fix that cleanly.
Processing large CSV files with Laravel's lazy collections
Loading a 100k-row CSV with `collect()` will blow your memory limit. Laravel's `LazyCollection` gives you the full Collection API backed by PHP generators — here's how to use it.
Adding a Stripe Customer Portal to your Laravel app with Cashier
Cashier's `redirectToBillingPortal()` gives your users a full subscription management UI — plan changes, cancellations, invoice downloads — in a single redirect. Here's how to wire it up.
Building custom Laravel Pulse recorders to track your own metrics
Pulse ships with solid built-in recorders. Here's how to extend it with your own — tracking the domain events that actually matter in your app.
Scaling Laravel queues in production: Horizon, Redis, and multi-server workers
Queue tutorials stop at dispatch and queue:work. Here is everything else — the architecture, Horizon configuration, failure handling, and multi-server scaling that keeps production queues healthy under real traffic.
Monitoring Laravel queues in production with Horizon
Most teams install Horizon and leave it at its defaults. Here's the production configuration that actually gives you visibility into your queues.
Upgrading from Livewire 3 to Livewire 4: A Practical Migration Guide
Livewire 4 shipped in early 2026 with SFCs, smarter wire:model, and a leaner Volt story. Here's how to upgrade a real app without surprises.
Usage-based billing with Stripe Meters and Laravel Cashier
Stripe Meters replace the old metered subscription records. Here's how to wire them up with Laravel Cashier to charge customers per API call, token, or any countable unit.
Enforcing Laravel architecture rules with Pest's arch() helper
Pest's arch() helper lets you write rules that enforce your app's structure at test time — no more accidentally importing Eloquent into a controller.
Verifying Stripe webhook signatures in Laravel without Cashier
You don't need Laravel Cashier to verify Stripe webhook signatures. Here's the minimal setup using the Stripe PHP SDK directly in a controller.
Zero-Downtime Laravel Deployments with GitHub Actions and Forge
Stop manually triggering Forge deploys. Here's how to wire GitHub Actions to Forge's deploy webhook so every push to main ships automatically — without downtime.
Fire HTTP requests after your response with Laravel 12's batch defer
Laravel 12.32 adds defer() to Http::batch() — a clean way to fire outbound HTTP calls after your response is sent, no queue worker required.
The Complete Laravel Developer Toolchain for 2026
Stop spending days configuring tools. Here is every tool in my Laravel stack for 2026, why I chose each one, and exactly how to set it up.
Running Laravel Pint Automatically with Git Pre-Commit Hooks
CI failing because someone forgot to run Pint again. Here's how to wire up a Git pre-commit hook so it never slips through.
PHP 8.4 Property Hooks in Laravel Models
PHP 8.4 property hooks are a tidy language-level alternative to getters and setters — but before you reach for them in your Eloquent models, there's a catch worth understanding.
Implementing Stripe trials for memberships: patterns and best practices
How to add trials to membership subscriptions using Stripe and Laravel Cashier, with patterns for free-until, trial_months, and safe webhook handling.
Stop Wasting Monitoring Quota: Block Malicious 404s with NGINX
Malicious bots were burning through my Laravel Nightwatch quota by hitting fake routes like /wp-login.php and /.env. Inspired by Michael Dyrynda’s approach using Cloudflare WAF, I built a portable NGINX blocklist that stops these 404s before they reach Laravel — no proxy required.
Streamlining Laravel Developer Onboarding with a Makefile and Herd Pro
Speed up Laravel onboarding with a powerful Makefile. Automate Herd Pro setup, install dependencies, and seed databases for a consistent, one-command setup experience.
A Developer’s Personal Site in 2025: What I Actually Use
Rebuilding my personal site from scratch using Laravel 12, Sushi, Folio, and Spatie packages — no CMS, no clutter, just a clean, fast dev blog.
Blazing-Fast Blogs with Laravel, Markdown, and Sushi
Why I chose Markdown and Sushi to power my Laravel blog — a simple, fast, and elegant alternative to heavier CMS setups.