Laravel Tutorials

Tutorials on everything from getting started with Laravel, to expert topics, and everything in between.

Laravel MongoDB Full-Text Search tutorial: The Art of the Relevancy

Laravel tutorial for full-text search with MongoDB Search: BM25 indexing, relevancy scoring, and field weighting to tune result quality.

Read article

Ship AI with Laravel: Real-Time Streaming Chat UI with Livewire

The agent's been talking to us through JSON. In this episode we build a real-time chat widget with Livewire, Alpine, and server-sent events so respons...

Read article

Ship AI with Laravel: Search Entire PDFs with Zero Search Logic

Last episode we built semantic search from scratch. This time we let the AI provider host the vector store and handle the search. Upload PDFs, full po...

Read article

Personalized Content Delivery System: Building an AI-powered recommendation engine with Laravel and MongoDB

Build an AI-powered content recommendation engine in Laravel using MongoDB Atlas Vector Search and Hugging Face embeddings to suggest related blog pos...

Read article

Ship AI with Laravel: RAG with Embeddings and pgvector in Laravel 13

Your agent looks up orders and remembers conversations but invents policies when customers ask about returns or shipping. In this episode we build a s...

Read article

Build Custom Middleware for Query Performance Monitoring and Optimization in Laravel with MongoDB

Learn how to build a lightweight query performance monitoring system using Laravel middleware and MongoDB's PHP driver command subscriber to track slo...

Read article

Ship AI with Laravel: Your AI Agent Has Amnesia. Let's Fix It.

Your agent looks up orders and pulls customer history but forgets everything between messages. Ask about order 1042, follow up with "can I return it?"...

Read article

Ship AI with Laravel: Stop Your AI Agent from Guessing

Your support agent talks, classifies tickets, but when a customer asks "where's my order?" it makes something up. In this episode we give the agent to...

Read article

Making Laravel MongoDB Operations Idempotent: Safe Retries for Financial Transactions

Learn how to implement idempotency in your Laravel MongoDB application to make checkout operations safe to retry, preventing duplicate charges and ens...

Read article

Ship AI with Laravel: Smart Ticket Triage with Structured Output

Your support agent can talk, but it responds in prose. You can't route a ticket or track sentiment from a paragraph. In this episode we build a Ticket...

Read article

Build an AI Chat Agent with Laravel 12, MongoDB Atlas Vector Search, and Voyage AI

Learn how to build a RAG-powered AI chat agent using Laravel 12, the Laravel AI SDK, Voyage AI embeddings, and MongoDB Atlas Vector Search to enable s...

Read article

Building Transaction-Safe Multi-Document Operations in Laravel

Learn how to use MongoDB's multi-document ACID transactions in Laravel to ensure data consistency across collections when atomic operations aren't eno...

Read article

Ship AI with Laravel: Building Your First Agent with Laravel 13's AI SDK

Laravel 13 ships with a first-party AI SDK. In the first episode of Ship AI with Laravel we install it, scaffold a support agent, and get it respondin...

Read article

Detecting and Fixing Race Conditions in Laravel Applications

Learn how to identify race conditions in your Laravel MongoDB applications and fix them using atomic operations

Read article

MongoDB Vector Search in Laravel: Finding the Unqueryable

Learn how to implement MongoDB Vector Search in Laravel to find results by semantic meaning instead of keyword matching, using Voyage AI embeddings an...

Read article