Voice Commands with Laravel: Integrating Whisper and GPT
Build Laravel applications with voice commands - from speech-to-text with OpenAI Whisper, natural language processing, to text-to-speech and realtime voice chat.
143 articles
Laravel is a popular PHP framework known for its elegant syntax and robust features. These articles cover Laravel fundamentals, advanced techniques, best practices, and real-world application development.
Build Laravel applications with voice commands - from speech-to-text with OpenAI Whisper, natural language processing, to text-to-speech and realtime voice chat.
Guide to integrating AI code review into CI/CD pipelines. Automatically review pull requests, detect bugs, security issues, and suggest improvements with GPT/Claude.
Comprehensive guide to fine-tune LLM models to create a coding assistant specialized in PHP and Laravel. From dataset preparation, training, to deployment with Laravel.
Integrate Hotwire (Turbo + Stimulus) with Laravel to build fast, smooth SPA-like web applications without writing much JavaScript. Learn from Rails' approach.
Step-by-step guide to building PWAs with Laravel - from Service Workers, Web App Manifest, Offline Support to Push Notifications and Background Sync.
A comprehensive guide to Laravel Herd - the native development tool for macOS and Windows. Installation, configuration, multiple PHP versions, services, and comparison with other solutions.
A comprehensive guide to integrating HTMX with Laravel to create interactive, SPA-like web applications without React, Vue, or any complex JavaScript framework.
Detailed guide on advanced rate limiting algorithms in Laravel: sliding window, token bucket, leaky bucket, and distributed rate limiting with Redis.
Comprehensive API security checklist for Laravel based on OWASP guidelines. Including authentication, authorization, input validation, rate limiting, and security headers.
Guide to implementing Passkeys and WebAuthn in Laravel for passwordless user authentication, more secure and convenient than passwords.
Guide to setting up and using Database Read Replicas in Laravel with MySQL and PostgreSQL. Query routing, failover handling, and best practices.
Comprehensive guide on horizontal scaling for Laravel: load balancing, session sharing, distributed caching, queue workers, and database replication.
Complete guide to installing and optimizing Laravel Octane with FrankenPHP, performance comparison with Swoole and RoadRunner, with real-world benchmarks.
Learn prompt engineering from a PHP developer's perspective. System prompts, structured output, few-shot examples, chain-of-thought, tool use patterns, and real Laravel integration examples that reduce API costs and improve reliability.
Build a production-ready AI chatbot in Laravel with real-time streaming responses. Server-Sent Events, OpenAI/Anthropic integration, conversation memory, rate limiting, and a clean Blade UI with zero JavaScript frameworks.
Set up PHPStan with Larastan for real Laravel projects. Configuration, custom rules, baseline strategy, CI integration, and fixing the most common issues in controllers, Eloquent models, and service classes.
Implement full i18n for your Laravel blog. Route-based locale switching, translated Markdown content, Blade helpers, SEO hreflang tags, and real-world patterns from a production bilingual blog.
Deploy Laravel to Kubernetes step by step. Container setup, Deployments, Services, Ingress, ConfigMaps, horizontal scaling, and production best practices.
Scale your Laravel database horizontally with sharding. Range-based, hash-based, and tenant-based strategies with practical Eloquent implementations.
Create standalone command-line applications powered by AI using Laravel Zero. Interactive prompts, streaming LLM responses, tool-use, and distributable PHAR binaries.
Understand MCP — the open standard for connecting AI models to external tools and data sources. Build an MCP server in PHP that exposes your Laravel app's capabilities to AI assistants.
Go beyond simple LLM API calls. Build AI agents in Laravel that use tools, maintain memory, reason in loops, and take actions — with practical code examples.
Go beyond Cache::get/set. Master Redis data structures, pub/sub, Lua scripting, rate limiting, sessions, and real-time features in Laravel.
Implement distributed tracing, metrics, and structured logging in Laravel with OpenTelemetry. Export to Jaeger, Grafana, and Datadog for full production observability.
URI-based, header-based, and query parameter versioning strategies for Laravel APIs. Maintain backward compatibility without breaking existing clients.
Build robust webhook receivers in Laravel. Signature verification, idempotency, async processing, retry handling, and real-world patterns for Stripe, GitHub, and more.
Replace fat controllers and bloated services with focused Action classes. One class, one job, fully testable. A modern alternative to the Service-Repository pattern.
Learn Event Sourcing and CQRS patterns in Laravel with Spatie's event-sourcing package. Build an audit trail, replay events, and separate read/write models.
Build pages faster with file-based routing (Folio) and single-file Livewire components (Volt). Ideal for content-heavy sites, dashboards, and rapid prototyping.
Validate forms in real-time using your existing Laravel backend rules. No duplicate validation logic on the frontend. Works with Vue, React, Alpine, and Inertia.
A complete guide to implementing feature flags in Laravel with Pennant. Gradual rollouts, A/B testing, user segmentation, and production-safe deployments.
A comprehensive guide to GraphQL in Laravel: from schema definition, queries, mutations, subscriptions to authentication, pagination, and N+1 prevention with Lighthouse PHP.
A comprehensive guide to Rate Limiting in Laravel: from basics to advanced, including custom limiters, sliding window algorithms, plan-based rate limits, and API throttling for SaaS.
Your app running smoothly on localhost doesn't mean production is fine. A comprehensive guide to setting up monitoring for Laravel: metrics, logs, alerts, and dashboards.
No servers, no Nginx, no SSH. A detailed guide to running Laravel applications on AWS Lambda using Bref, with near-zero costs for low-traffic sites.
A guide to using Terraform to automate your entire AWS infrastructure for Laravel applications: VPC, EC2, RDS, S3, ElastiCache, ALB, CloudFront. No clicking, no memorizing CLI commands.
The final part: automate deployments with GitHub Actions, Laravel Envoy for zero-downtime releases, set up CloudWatch monitoring via Console, and complete the series.
Set up Application Load Balancer, free SSL via ACM, CloudFront CDN, and Route 53 DNS — all via the AWS Console, step by step with exact field values.
Set up RDS MySQL 8.0, S3 bucket, and ElastiCache Redis entirely via the AWS Console — click-by-click steps, then connect Laravel to all three services.
Launch an EC2 instance via the Console with Amazon Linux 2023, SSH in, install Nginx + PHP-FPM 8.4, set up Supervisor for queues, and deploy Laravel manually.
Design a production-ready AWS architecture entirely via the Console: VPC with public/private subnets, security groups, IAM roles — every step click-by-click.
Step-by-step guide using the AWS Console: create an account, secure root with MFA, set up an IAM user, configure billing alerts, and understand core AWS concepts.
The final part: automate deployments with GitHub Actions, Laravel Envoy for zero-downtime releases, CloudFront cache invalidation, automated rollbacks, and monitoring.
Set up Application Load Balancer with health checks, free SSL via ACM, CloudFront CDN for static assets, and Route 53 for domain management — complete HTTPS setup.
Set up RDS MySQL 8.0 in a private subnet, configure S3 for file uploads and backups, add ElastiCache Redis for sessions and cache, and connect Laravel to all three.
Launch an EC2 instance with Amazon Linux 2023, install and configure Nginx + PHP-FPM 8.4, set up Supervisor for queues, and deploy a Laravel app manually for the first time.
Design a production-ready AWS architecture for Laravel: VPC with public/private subnets, security groups, IAM roles, and the complete infrastructure blueprint before touching any server.
Before deploying anything: create an AWS account, secure it with MFA, set up an IAM user, install the AWS CLI, and understand the core AWS concepts you'll need throughout this series.
Explore all the new features, improvements, and breaking changes in Laravel 13 — from revamped starter kits, typed Eloquent, to major performance gains.
The final part of the Building SaaS series: deploying to production with Docker, Nginx, wildcard SSL, CI/CD pipeline, monitoring, and scaling strategies.
Part 7 of the Building SaaS series: building a REST API with Sanctum, API versioning, rate limiting, and a webhook system for third-party integrations.
Part 6 of the Building SaaS series: building an admin dashboard to monitor tenants, revenue metrics, MRR tracking, and health monitoring.
Part 5 of the Building SaaS series: enforcing feature limits per plan, realtime usage tracking, quota warnings, and upgrade prompts.
Part 4 of the Building SaaS series: invite members system, roles & permissions, team collaboration with Spatie Laravel Permission.
Part 3 of the Building SaaS series: integrating Stripe Cashier for subscription billing, managing plans, trial periods, and handling webhooks.
Part 2 of the Building SaaS series: implementing multi-tenancy with subdomain routing, data isolation, tenant switching, and comprehensive testing.
Part 1 of the Building SaaS with Laravel series: architecture design, folder structure, environment configuration, and foundational database schema.
Best practices for receiving, verifying, and processing webhooks from services like Stripe and GitHub in Laravel.
How to create custom Blade directives to reduce logic in views and keep PHP code clean.
Secure your Laravel application against XSS attacks using strict Content Security Policy headers and Spatie's CSP package.
Solve the problem of passing global variables and decoupling query logic for Shared Views in Laravel.
A comprehensive guide on creating and managing reusable UI in Laravel using Blade Components and Slots.
Equip yourself with convenient directives from Laravel 10 and 11 to write super fast and modern Blade templates.
Use Laravel's new withExpression support to handle complex recursive queries and clean up Eloquent syntax.
Learn how to use Action Classes to implement the Single Responsibility Principle and clean up your Controllers and Services.
Explore how Laravel Volt and Folio can streamline your development workflow with single-file components and file-based routing.
A comprehensive guide on installing Mailpit as a MailHog replacement on Amazon Linux 2023, configuring Nginx reverse proxy, and integrating with Laravel.
Stop deploying GB-sized Docker images. Learn to use Multi-stage builds, Alpine Linux, and layer optimization to create ultra-light and secure Laravel images.
100% Test Coverage doesn't guarantee safe code. Mutation Testing helps verify the quality of your tests themselves by intentionally injecting bugs into the code.
When a Model has too many states (Pending, Paid, Shipped...), code gets flooded with if/else. The State Pattern helps encapsulate state transition logic elegantly.
Deploy new features safely, perform A/B testing, and manage strategic rollouts using the official Laravel Pennant package.
Discover how Laravel Precognition brings real-time validation capabilities without duplicating validation logic on the Frontend.
A masterclass in Function Calling. Teach AI to execute PHP code, query databases, and perform complex workflows autonomously.
A deep comparison of vector database options for Laravel. Benchmarks, feature sets, and decision frameworks for choosing between PostgreSQL and dedicated engines.
A comprehensive guide to implementing Retrieval-Augmented Generation (RAG) in Laravel. From chunking strategies to vector retrieval and LLM context injection.
Beyond simple API calls. Streaming responses, handling timeouts, managing context windows, and using standard packages like Prism.
Master Eloquent Subqueries. Sort by relationships, safe memory usage, composite indexes, and advanced scope optimization.
Stop repeating collection logic. Learn how to extend Laravel Collections with Macros, Mixins, and how to test them effectively for cleaner code.
Implement a robust payment system supporting Stripe, PayPal, and others using the Strategy Design Pattern. Learn to switch gateways dynamically without messy if-else statements.
Master Laravel Pulse to monitor your application's vital stats—slow queries, cache hit rates, queue usage, and server performance—in real-time.
Refactor complex business logic into maintainable, distinct steps using Laravel's Pipeline utility. Perfect for checkouts, data processing, and workflow management.
Boost your Laravel application's performance significantly by keeping it in memory with Laravel Octane and Swoole or RoadRunner.
Build robust, beautiful admin panels in minutes using FilamentPHP. Learn how to create resources, custom widgets, and handle complex relationships.
Implement multi-tenancy in Laravel with domain isolation, data partitioning, and tenant middleware for scalable SaaS applications.
Master Laravel Broadcasting with Reverb, presence channels, and private channels to build scalable real-time features.
Master database transactions and locking strategies to handle concurrent operations, prevent race conditions, and ensure data integrity.
Master Pest PHP testing framework with expressive syntax, data sets, and higher-order tests to write cleaner, more maintainable test suites.
Learn advanced patterns for consuming external APIs with Laravel's HTTP client, including retry logic, timeout handling, and error management.
Learn how to implement ETag and Last-Modified headers in Laravel to drastically reduce bandwidth and improve load times for file-based content.
Create a beautiful command-line interface to manage your blog content using Laravel Prompts.
Refactor your data mapping logic by leveraging PHP 8 Attributes to declaratively map Markdown frontmatter to DTO properties.
Deep dive into League/CommonMark extensions. Create custom renderers for alerts, custom blocks, and integrate Shiki for syntax highlighting.
Ditch the database for content. Learn how to architect a blogging workflow where Git Commit corresponds to Publish, and how to automate the deployment.
Stop passing associative arrays everywhere. Use PHP 8.2 readonly classes to create type-safe, immutable Data Transfer Objects in your Laravel applications.
Why manually create files? Learn how to write a robust 'make:post' command that generates strict Markdown files with Frontmatter automatically.
Rendering user-generated (or even admin-generated) content requires strict security practices. Learn how to configure league/commonmark to prevent XSS attacks.
Keep your readers updated. A guide to generating standard RSS/Atom feeds and XML Sitemaps for your Markdown-based Laravel blog.
Go beyond authentication. Learn how to configure CSP, HSTS, and other HTTP security headers in Laravel to protect your blog from XSS and clickjacking.
Boost your blog's visibility with structured data, Open Graph tags, and valid metadata using Laravel Blade components.
Going beyond the basics: Chunk splitting, asset versioning, and lazy loading JavaScript in a Laravel ecosystem.
Static analysis is strict, annoying, and absolutely necessary. Here is how to configure Larastan for maximum safety.
Implement TF-IDF and Vector Space Model search purely in PHP and SQLite. No API keys, no monthly costs, just math.
Leveraging PHP 8.1+ Enums to clean up your Laravel models, validation logic, and database interactions.
Understanding the heart of the framework. Dependency Injection, Binding, and how Laravel builds your application.
Why load a heavy framework for simple interactions? Alpine.js provides the reactive nature of Vue at a fraction of the cost, perfect for Blade templates.
Reading `laravel.log` via SSH is painful. Learn how to centralize your logs using the Stack channel and external services like Papertrail or Datadog.
Automate your testing and deployment workflow using GitHub Actions.
Why is your query slow? It's probably missing an index. Learn the basics of database indexing within Laravel Migrations.
Stop using `dd()` and `var_dump()`. Learn how to debug Laravel applications like a professional using Telescope and Spatie Ray.
Learn how to transform your models into JSON responses using API resources.
Learn how to implement authentication in Laravel applications.
Enhance your Blade templates with these tips and tricks.
Moving beyond MVC. How to structure large-scale Laravel applications using Domain-Driven Design concepts.
Explore the different types of relationships in Laravel Eloquent and learn how to use them effectively.
How to use Laravel's event system to create clean, decoupled, and maintainable code.
Take control of your Redis queues with Laravel Horizon. Monitor metrics, throughput, and manage failures with a beautiful dashboard.
Why build an API when you don't have to? Learn how Inertia.js allows you to build single-page apps using classic server-side routing.
Who needs MongoDB? Modern MySQL and PostgreSQL have powerful JSON support. Learn how to leverage it in Laravel Eloquent.
A guide to handling large CSV files (millions of rows) without encountering memory limit errors in Laravel, using StreamedResponse, LazyCollection, and Queues.
A comprehensive guide to building dynamic, reactive frontends in Laravel using Livewire 3 without writing complex JavaScript.
A comprehensive guide to using middleware in Laravel.
The #1 performance killer in Laravel apps. Learn how to detect N+1 problems and fix them using Eager Loading.
Send notifications via Email, SMS, Slack, and Database using a single, unified API.
A comprehensive guide to API authentication using Laravel Passport (OAuth2 server).
Understand how to use queues in Laravel for background processing.
Meet Laravel Reverb, the new first-party WebSocket server for Laravel applications. Blazing fast, scalable, and built in PHP.
Learn the fundamentals of routing in Laravel.
How to instantly set up a consistent development environment using Laravel Sail and Docker.
A comprehensive guide to API authentication using Laravel Sanctum.
SQL 'LIKE' queries are slow and dumb. Implement typo-tolerant, lightning-fast full-text search with Laravel Scout and Meilisearch.
WebSockets are overkill for one-way updates. Learn how to implement Server-Sent Events (SSE) in Laravel for simple real-time feeds.
Learn how to replace complex Cron jobs with Laravel's expressive fluent Task Scheduler.
Improve your Laravel application testing with these best practices.
A step-by-step guide to implementing Two-Factor Authentication (2FA) in Laravel using Fortify.
Learn how to validate user input effectively in Laravel.
A complete guide to configuring Nginx for hosting Laravel applications.
Techniques to speed up your Laravel database queries: Eager Loading, Chunking, and more.
Is your controller method 100 lines long? Here are 5 proven strategies to clean it up and make your code reusable and testable.
A pragmatic look at one of the most debated architectural patterns in the Laravel community. When should you use Repositories, and when is Eloquent enough?
A detailed guide on installing Supervisor on Amazon Linux to manage Laravel Queue workers, ensuring processes always run in the background.
Stop SSH-ing into your server and pulling via Git manually. Automate your deployment pipeline with Laravel Envoy for zero-downtime updates.
Learn how this markdown-based blog works and how to create your first post.
Improve your Laravel application performance with these essential caching strategies.