Best of PHPAugust 2025

  1. 1
    Article
    Avatar of lnLaravel News·35w

    Filament v4 is Stable!

    Filament v4 has been officially released as stable, bringing significant performance improvements including 3x faster table rendering for large datasets. Key new features include unified Schemas that combine form fields, infolist entries, and layout components; custom data tables that support non-Model-backed data with full pagination, search, and sorting capabilities; and a unified Actions namespace that eliminates import confusion. The release also introduces partial rendering solutions and automated upgrade scripts to ease migration from v3.

  2. 2
    Article
    Avatar of medium_jsMedium·36w

    Stop Writing Try/Catch Like This in Laravel

    Identifies five common anti-patterns in Laravel exception handling that lead to production issues: blind catching of all exceptions, empty catch blocks, logging without context, transaction abuse, and controller bloat. Provides specific fixes including targeted exception catching, contextual logging, proper transaction scoping, and centralized exception handling through Laravel's global exception handler.

  3. 3
    Article
    Avatar of wendelladrielW endell Adriel·33w

    Welcome to the State Machine Pattern

    State machines provide a structured approach to managing complex workflows by defining explicit states, events, and transition rules. This pattern replaces tangled if/else logic with predictable, testable behavior using PHP enums, guards for validation, and actions for side effects. The implementation includes domain events with an outbox pattern to keep decision logic pure while handling side effects reliably. Key benefits include improved clarity, safety from forbidden transitions, better testability, and enhanced observability through logging and documentation generation.

  4. 4
    Article
    Avatar of medium_jsMedium·36w

    7 PHP Operators Every Laravel Pro Should Master

    Modern PHP operators can significantly improve code readability and safety. The null-safe operator (?->) eliminates nested null checks, null coalescing assignment (??=) simplifies default value setting, and the spread operator (...) streamlines array merging. The match expression provides a cleaner alternative to switch statements with strict comparison, while the spaceship operator (<=>) simplifies sorting logic. Understanding the difference between null coalescing (??) and Elvis (?:) operators prevents logic bugs, and chaining null coalescing operators creates clean fallback chains.

  5. 5
    Article
    Avatar of wendelladrielW endell Adriel·34w

    Laravel Queues Under the Hood

    Laravel's queue system transforms slow, unreliable tasks into fast, reliable workflows by moving work off the request cycle. The system follows a pipeline: dispatch jobs, serialize them into JSON payloads, store them via connectors (Redis, Database, SQS), pop them with workers, execute through middleware, and acknowledge or retry with backoff strategies. Redis uses lists and sorted sets for main queues, delayed jobs, and reserved jobs with visibility timeouts. Workers run as long-lived processes that handle job lifecycle, retries, and failures. Advanced features include job chains for sequential execution, batches for parallel processing with progress tracking, unique jobs, and overlapping prevention through cache locks.

  6. 6
    Article
    Avatar of collectionsCollections·35w

    Introducing Laravel Boost: The AI-Powered Coding Starter Kit for Laravel Development

    Laravel Boost is a new open-source AI coding assistant specifically built for Laravel development. It features an MCP server with 15+ tools for database querying and application inspection, access to 17,000+ pieces of Laravel documentation, automatic package version detection, and integration with popular IDEs like Cursor and Claude. The tool helps developers generate better Laravel code, build Livewire components, automate testing and migrations, while reducing AI hallucinations through Laravel-specific context and guidelines.

  7. 7
    Article
    Avatar of hnHacker News·35w

    Claude Code Is All You Need

    Demonstrates 'vibe coding' - creating software by chatting with AI models without directly writing code. Shows how Claude AI generated a working SplitWise clone from a single 500-word specification, comparing a successful 900-line PHP implementation against a broken Node.js version with 500MB of dependencies. Highlights the importance of prompt quality and technical constraints when using AI for code generation.

  8. 8
    Article
    Avatar of lnLaravel News·33w

    Smart Cache Package for Laravel

    SmartCache is a Laravel package that automatically optimizes cache storage for large datasets through intelligent compression, chunking, and serialization. It provides driver-aware optimization strategies for Redis, file, and database caches, automatically detecting when optimization is needed and seamlessly reconstructing data on retrieval. The package includes features like gzip compression, performance monitoring, and extensible strategy patterns for custom optimizations.

  9. 9
    Article
    Avatar of lnLaravel News·36w

    Generate Postman Collections from Laravel Routes

    The yasintqvi/laravel-postman package automatically generates Postman collections from Laravel routes using a single Artisan command. It includes intelligent organization strategies, automatic request body generation from FormRequest validation rules, built-in authentication support, and customizable filtering options. The package streamlines API testing workflows by creating ready-to-use Postman collections with comprehensive documentation capabilities.

  10. 10
    Article
    Avatar of freekFREEK.DEV·33w

    Exploring our new PHP SDK, built using Saloon

    A developer shares their experience rebuilding the Oh Dear SDK using Saloon, a PHP HTTP client library. The post discusses the benefits and implementation details of using Saloon for creating modern PHP SDKs, highlighting how it improved the development experience compared to previous approaches.

  11. 11
    Article
    Avatar of wendelladrielW endell Adriel·36w

    Understanding Laravel Eloquent's Active Record Pattern

    The Active Record pattern treats database rows as objects with built-in CRUD behavior, which powers Laravel's Eloquent ORM. The pattern offers fast productivity and readable queries but can lead to coupled business logic and fat models. The article demonstrates how Active Record works by building a minimal PHP implementation from scratch, showing the mechanics behind Eloquent's magic including attribute hydration, dirty checking, and persistence methods.

  12. 12
    Article
    Avatar of laravelLaravel·33w

    AI Coding Tips for Laravel Developers

    Laravel Boost, now in public beta, provides AI agents with direct access to Laravel app context and documentation to improve code generation accuracy. The guide covers getting started with AI-assisted Laravel development through supported editors like Cursor, Claude Code, PhpStorm, and VS Code. Key recommendations include starting with small tasks like explaining code or writing unit tests, treating AI like a junior pair programmer by providing context and explicit instructions, then gradually progressing to larger tasks like scaffolding controllers and suggesting refactors.

  13. 13
    Article
    Avatar of laravelLaravel·34w

    Livewire 4 Is Here! The Artisan of the Day Is Caleb Porzio.

    Livewire 4 introduces single-file components by default, better project structure with dedicated directories, and lightning bolt file extensions. Key improvements include PHP 8.4 property hooks integration, slots and refs support, and smarter loading states. Performance enhancements feature non-blocking polling, the Blaze compiler for 20x faster Blade rendering, and Islands for independent component rendering. The update addresses the fragmentation of three different component creation methods by introducing a unified fourth approach that becomes the new standard.

  14. 14
    Article
    Avatar of lnLaravel News·34w

    Pest 4 is Released

    Pest 4 introduces browser testing capabilities using modern tools like Playwright, allowing developers to combine unit and end-to-end tests in a single framework. Key features include visual testing, device testing, code coverage across browser and unit tests, tinker sessions during tests, and test sharding for parallel CI runs. The release enables cohesive testing workflows without maintaining separate test suites.

  15. 15
    Article
    Avatar of hnHacker News·32w

    The Rise of Hybrid PHP: Blending PHP with Go and Rust

    Modern PHP applications can achieve high performance by integrating compiled languages like Go and Rust through extensions and FFI, rather than rewriting entire systems. This hybrid approach combines PHP's developer productivity with the raw speed of systems languages for performance-critical components. FrankenPHP's worker mode and Go extension capabilities offer up to 4x performance improvements while maintaining the monolithic architecture's benefits.

  16. 16
    Article
    Avatar of larablogLarablog·33w

    Should You Learn Laravel Before PHP?

    Explores the common dilemma of whether beginners should learn PHP fundamentals first or jump directly into the Laravel framework. Discusses the learning path considerations and prerequisites for getting started with Laravel development.

  17. 17
    Article
    Avatar of lnLaravel News·35w

    The Laravel Way to Build AI Agents That Actually Work

    Vizra ADK is a new open-source Laravel framework that brings software engineering principles to AI agent development. It provides Laravel-style tools for building, testing, and deploying AI agents with features like automatic session management, tool calling, multi-LLM support, and a comprehensive evaluation system with 20+ built-in assertions. The framework includes Artisan commands, a web dashboard, API endpoints, and supports agent delegation and workflows, making AI development more structured and testable for Laravel developers.

  18. 18
    Article
    Avatar of laravelLaravel·35w

    Everything We Announced at Laracon US 2025

    Laravel announced major updates at Laracon US 2025, including Laravel Cloud's production-ready MySQL support, autoscaling queue clusters, and preview environments for testing PRs. The next-generation Forge will feature zero-downtime deployments, Laravel VPS for faster provisioning, and enhanced developer tools. Laravel 12 introduces AI-powered features like Laravel Boost and MCP SDK, improved broadcasting with useEcho hooks, and better client-side tooling. Nightwatch observability platform received pricing updates with 50% more events included and new Slack integration for real-time alerts.

  19. 19
    Article
    Avatar of freekFREEK.DEV·37w

    Why I don't use down migrations

    Down migrations in Laravel are often untested code that creates a false sense of security. They become problematic when new data exists after deployment, as rolling back can cause data loss or leave orphaned records. The complexity increases with modern deployment strategies where code and database versions may be misaligned. A forward-only migration approach is recommended, where issues are resolved by creating new migrations that move the schema forward rather than attempting to reverse changes.

  20. 20
    Article
    Avatar of neontechNeon·35w

    Using app.build to Create Production-Ready Laravel Apps

    App.build is a new AI code generation tool specifically designed for Laravel developers, addressing the shortcomings of existing AI assistants like GitHub Copilot that often generate outdated PHP code. Unlike generic AI tools, app.build uses framework-specific validation, targets modern Laravel 12 and PHP 8.3+, and includes comprehensive testing pipelines to ensure production-ready applications. The tool generates complete Laravel apps with modern patterns including Inertia.js for SPAs, Pest for testing, Docker configuration, and Tailwind CSS v4, all validated through automated testing before delivery.