The Laralist

Browse past editions.

#49 - Laravel 12.2 released πŸš€, Model Context Protocol explained as simply as possible 🧠, Timebox class πŸ’‘, JetBrains Xdebug Helper Browser Extension 🐞

The Laravel v12.2.0 release introduces notable features including increment and decrement methods to the Context class and support for *OfMany in HasOneThrough relationships. Additionally, it provides a ddBody method in TestResponse for dumping HTTP response payloads, and enables collection chunking without preserving keys.

16th of March, 2025

#48 - Laravel AI Agent Development Made Easy πŸ€–, Building My Own Async PHP ⚑, retry() Helper πŸ’‘, Engineering Mistakes in Large Codebases πŸ—οΈ

Explore LarAgent, an open-source package simplifying AI agent development in Laravel. It offers flexible configurations, structured output, and extensive features for diverse AI integrations in your projects.

9th of March, 2025

#47 - Laravel 12 unveils the new starter kits, sparking a community debate πŸ”₯, RFC: Asymmetric Visibility for Static Properties βœ…, Twill πŸ“¦, Collapsing the talent stack 🧩, Arr macros πŸ’‘,

Laravel 12 launched this week, featuring new starter kits that have ignited substantial debate within the Laravel community. Developers have raised concerns about significant shifts, including the use of Volt, reliance on third-party services like WorkOS for authentication, and the departure from Breeze and Jetstream. In response to community feedback, Taylor Otwell introduced a non-Volt version of the Livewire starter kit, catering to developers who prefer more traditional setups. Will this be sufficient to address the community’s concerns?

2nd of March, 2025

#46 - Laravel 12 tomorrow πŸš€, Laracon EU 25 Playlist πŸŽ₯, Artisan Benchmark ⏱️, Ugly Code & Dumb Things πŸ€ͺ, Inject configuration values πŸ’‘

The Laravel team will launch Laravel 12 on Monday, focusing on maintenance and upstream dependency updates with minimal breaking changes, ensuring easy upgrades.

23rd of February, 2025

#45 - Apple approved my php app on iOS! βœ…, Consistent API Error Handling in Laravel πŸ“œ, Tinkerpad πŸ› οΈ, What is Event Sourcing? ⏳, whenLoaded() πŸ’‘

Apple has approved a PHP-based iOS app built with Laravel and Livewire, showing that PHP developers can now create iPhone apps without learning new languages. The video demonstrates the processβ€”installing a native PHP iOS package into a Laravel project, running it via Composer, and launching the app in an iOS simulator with hot reloading.

16th of February, 2025

Get The Laralist in your inbox

Keep up with Laravel in 5 minutes. Get the most important Laravel, PHP, & package news and reads every Sunday for free.

#44 - Big Announcements from Laracon EU 2025 πŸ“’, Custom Blade Directives πŸ’‘, The State of PHP 2024 πŸ“Š , Developer philosophy πŸ“œ

A summary of the new projects: Taylor Otwell's Laravel Cloud and starter kits, Jess Archer's Laravel Nightwatch, Aaron Francis's Fusion for PHP+JS, and Simon Hamp's NativePHP for mobile apps.

9th of February, 2025

#43 - Automatic dependency updates for Composer βš™οΈ, Discovery Coding πŸ”¬, createQuietly πŸ’‘, Essential Laravel Artisan Commands for Better Deployments πŸš€

Conductor automates Composer updates for PHP, integrating seamlessly with CI environments. It delivers pull requests for easy review, ensuring timely security patches and up-to-date dependencies with minimal effort.

2nd of February, 2025

#42 - Easier endpoint tests with Policy::fake πŸ§ͺ, Using Laravel Tinker in Chrome DevTools πŸ› οΈ, Laravel v11.39 and v11.40 released πŸš€, Auth::once() πŸ’‘, Stop using Pseudo-Types βœ‹, phpclickhouse-laravel πŸ“¦

Streamline your Laravel endpoint tests with PolicyFake, a technique that enables to mock policies VideoPolicy::fake(['view' => false]). This approach makes testing endpoint authorization simpler, allowing us to bypass complex setups and focus on effective endpoint testing.

26th of January, 2025

#41 - Download Files Easily with Laravel's HTTP sink Method πŸ’Ύ, Laravel v11.38 released πŸš€, Learn Data Structures and Algorithms πŸ“˜, travel() πŸ’‘, PHP Fibers: How PHP is Finally Warming Up to Asynchronous Programming 🧡

Meet Laravel’s `sink` method for effortless file downloads. By creating a direct pipeline from HTTP responses to your storage, it automatically handles file writing, streamlining the entire download process.

19th of January, 2025

#40 - Manually setting the intended URL πŸ”€, Should you be a software generalist or specialist? πŸ€”, What is PSR-6? πŸ“–, RFC: Attributes on constants βœ…, throw_if methodπŸ’‘

Learn how to manually set the intended URL in Laravel routes using the `setIntendedUrl` method, allowing seamless redirection after user actions, like submitting feedback, even for unauthenticated users.

12th of January, 2025

#39 - Laravel 11.37 released πŸš€, Chrome now helps you write better with AI ✍️, Custom Blade conditionals πŸ’‘, PHPStan 2.1 πŸ†•, Pass by Reference vs Pass by Value in PHP ↔️, RFC: Persistent curl share handle improvement βœ…

Laravel v11.37.0 introduces several enhancements to streamline development. Key updates include the new Dumpable trait for the Uri class, allowing easy debugging with dd() and dump() methods, and a case-insensitive option in the Str::is method. Additionally, new Eloquent methods such as whereDoesntHaveRelation and whereMorphDoesntHaveRelation simplify querying inverse relationships.

5th of January, 2025

#38 - Add Logic To Laravel Requests Conditionally 🚦, Resisting the Switch to Scala, Rust, or Go πŸ›‘οΈ, Securing Webhooks πŸ”’, Converting CURL to Laravel HTTP Client Requests πŸ’‘

Laravel 11.35.0 introduces the `when()` method in the `Request` class, enhancing conditional logic with cleaner, more expressive syntax through the `Conditionable` trait. The article explains the feature and how to use it.

29th of December, 2024

#37 - Laravel VS Code Extension Public Beta πŸ”Œ, Laravel 11.36 released πŸš€, Exploring the browser rendering process πŸ”, 5 New Features in Rector 2.0 πŸ†•, laravel-postgresql-enhanced πŸ“¦

Laravel has launched a VS Code Extension in public beta, offering an integrated development experience tailored for Laravel projects. The extension includes features like IntelliSense for Laravel facades, inline documentation, and artisan command execution directly from VS Code. It’s designed to enhance productivity and streamline common tasks for Laravel developers.

22nd of December, 2024

#36 - Laravel 11.35 released πŸš€, Writing down every UUID πŸ“, How Autoload made PHP elegant ✨, Cognitive load is what matters 🧠, Migration tools πŸ’‘

This release introduces several updates, including URI parsing and mutation using the Uri class, e.g., Uri::to('/something')->withQuery(...), check out this tutorial for more. HTTP responses can now be transformed into fluent instances for easier data manipulation, and HTTP client exception message truncation can be customized or disabled. The Conditionable trait in Request enables conditional logic. Other updates include sorting by definition in artisan route:list with --sort=definition and new scheduling methods pingOnSuccessIf and pingOnFailureIf for conditional URL pings on task success or failure.

15th of December, 2024

#35 - Xdebug 3.4.0 is out πŸš€, The action pattern explained βš™οΈ, PHP-FFMPEG πŸ“¦, Microbenchmarks are experiments πŸ”¬, Route parameters constraints πŸ’‘

The latest Xdebug release supports PHP 8.4 and introduces the `XDEBUG_IGNORE` feature, which allows the step debugger to bypass specific requests.

8th of December, 2024

#34 - Access Request Data as an Object 🌊, ValidatedInput πŸ’‘, Build a News Classifier Using Rubix ML 🧠, RFC: Support Closures in constant expressions βœ…

Discover how the new Request::fluent() method in Laravel 11.34 transforms request data into a Fluent object. This update simplifies accessing attributes, moving from $request->input('name') to $data->name, making your code cleaner and more intuitive.

1st of December, 2024

#33 - PHPΒ 8.4Β isΒ released πŸš€, Http::preventStrayRequests() πŸ’‘, Postgres and MySQL, the main differences βš–οΈ, Laravel Custom Query Builders Over Scopes πŸ”

PHP 8.4 introduces major features like Property Hooks and Asymmetric Visibility, enhancing class property management. It also offers Lazy Objects, HTML5-compliant DOM parsing, and driver-specific PDO subclasses, improving overall performance and security.

24th of November, 2024

#32 - Laravel 11.32 Released πŸš€, withCasts() πŸ’‘, What's new in PHP 8.4 πŸ†•, How I ship projects at big tech companies πŸ›³οΈ

The latest Laravel release introduces grouped scheduling to organize multiple commands. It also includes features like the `failedConnection()` method for faking failed HTTP connections, syncing Eloquent associations with arrays or base collections of models, and the `rawColumn()` method for custom column types in migrations.

17th of November, 2024

#31 - Laravel Nightwatch Announced 🌌, 5 Ways to Extract Value from Overmocked Tests πŸ§ͺ, How Property Hooks Happened πŸͺ, SOLO πŸ“¦

Taylor announces Laravel’s Nightwatch, a new tool that provides valuable insights into your app’s performance. It helps identify slow routes, track queued job performance, and diagnose user-specific issues. With fast log search capabilities and server health monitoring, Nightwatch offers actionable data to help optimize your application.

10th of November, 2024

#30 - Laravel 11.30 Released πŸš€, Sleep helper class πŸ’‘, State of CSS 2024 Results πŸ“Š, You Want Modules, Not Microservices 🧩

This release introduces `withDefer()` and `withoutDefer()` test helpers to manage deferred calls during testing. It also debuts the `HasUniqueStringIds` trait, enabling custom unique string IDs for Eloquent models to be used efficiently as route keys. Additionally, the `authorize()` method now accepts Backed Enums directly, simplifying authorization checks by allowing direct enum usage (From `$this->authorize(DashboardPermission::VIEW->value)` to `$this->authorize(DashboardPermission::VIEW)`).

3rd of November, 2024

#29 - A Case For Custom Collections πŸ—‚οΈ, Key Principles for Writing Clean Maintainable Code πŸ“–, Exceptions::fake() πŸ’‘, Introducing Mellum: JetBrains’ New LLM Built for Developers 🧠

The newly merged PR introduces the `CollectedBy` attribute in Laravel, enabling Eloquent models to specify custom collection classes easily, enhancing the expressiveness and encapsulation of collection logic in applications.

27th of October, 2024

#28 - New composer run dev command πŸš€, Migrate pretend option πŸ’‘, That's not an abstraction that's just a layer of indirection πŸ”„, Check environmet keys πŸ“¦

The latest Laravel update brings exciting features! The new `composer run dev` command, added to composer.json for all new applications, launches the Artisan dev server, a queue worker, the Vite dev server, and log tailing with just one command. Additionally, the introduction of the `CollectedBy` attribute allows for custom collection classes for Eloquent models. Package authors now have the capability to register their own commands for the `optimize` and `optimize:clear` operations.

20th of October, 2024

#27 - Using 1password for Laravel environment variables πŸ”, Laravel API Course πŸ“š, Laravel’s Process facade πŸ’‘, Laravel 11.27 Released πŸš€, WireSpy debug bar for Livewire πŸ“¦

Explore secure secret management for Laravel using the 1Password CLI. This guide discusses the benefits of effective secret management, compares tools like `artisan env:encrypt` and `git-secret`, and provides a detailed setup for integrating 1Password CLI in your deployment process, enhancing security and access control.

13th of October, 2024

#26 - A Guide to Laravel Pipelines πŸ“š, CPX - Run Composer Packages commands on the fly πŸƒ, Apply Regular Expression Constraints to route parameters πŸ’‘, OpenAI launches new 'Canvas' ChatGPT interface tailored to writing and coding projects ✍️

This comprehensive guide explores the use of Laravel's Pipeline class, detailing its application for handling complex processes through multiple stages. Learn to create, manage, and test pipelines, enhancing code maintainability and efficiency in your Laravel projects.

6th of October, 2024

#25 - Flux released πŸš€, The messy WordPress drama πŸŒͺ️, PostgreSQL 17 Released πŸš€, Laravel Easy Metrics πŸ“¦, Publish stubs πŸ’‘

Flux is the official Livewire Component Library. Built by the talented team behind Livewire and Alpine.js, Flux brings a powerful set of UI components specifically designed to simplify front-end development for Laravel apps. Whether you’re building dynamic, interactive interfaces or need customizable components, Flux is here to streamline your workflow.

29th of September, 2024

#24 - The Magic Behind Laravel’s New Defer() Helper πŸͺ„, The Hidden Costs of Over-Collaboration πŸ’Ό, Window Functions for Postgres Data Analysis πŸ”, Laravel Favicon πŸ“¦

Explore the inner workings of Laravel's `defer()` method, which allows for the execution of callbacks after a response is sent without using queues. This article delves into its implementation and the global middleware that makes it possible.

22nd of September, 2024

#23 - LaraconUS Demoed Features available in v11.23 release πŸš€, Look out, kids: PHP is the new JavaScript πŸ‘€, Laracon US 2024 Talks Now Available πŸ“£, PHP TUI πŸ“¦

Taylor Otwell has announced the release of several new framework features that were demoed at LaraconUS. Highlights include the new `defer()` function, which delays tasks until the response is sent. The `Cache::flexible` method implements a stale-while-revalidate pattern, refreshing the cache in the background. The `Concurrency` facade enables concurrent execution of closures. Additional updates include temporary signed URLs in the local filesystem and intuitive `when` helpers for Blade/Livewire templates. There is a new `log` function, the `firstOrFail` method for query builders, and a convenient `Skip` queue middleware for skipping queued jobs conditionally.

15th of September, 2024

#22 - Accel invests $57M into LaravelπŸ’°, Laravel 11.22 released includes the chaperone method πŸš€, Custom Eloquent Collections πŸ’‘, Algorithms we develop software by πŸ”¨

Laravel secures a $57M Series A investment from Accel, with Taylor Otwell reaffirming its commitment to open-source and innovation. This funding will enhance Laravel Cloud and introduce new products aimed at improving full-stack web application development.

8th of September, 2024

#21 - Taylor Otwell’s Keynote at Laracon US πŸ—£οΈ, Everything We Know about Pest 3 πŸ§ͺ, Don’t Ask Permission To Do Your Job Correctly πŸ’Ό, The @once directive πŸ’‘

Taylor Otwell unveiled several exciting updates in his keynote at Laracon US. Highlights include **Laravel Cloud**, a fully managed platform tailored for Laravel applications, and a **first-party VS Code extension**. Additionally, he introduced **deferred functions** for post-response processing, a new **concurrency API** for parallel processing, and **Inertia 2.0**, including features for asynchronous data loading and prefetching.

1st of September, 2024

#20 - State of Generics and Collections πŸ“š, Laravel 11.21 released πŸš€, Eloquent Power Joins πŸ“¦, 8 versions of UUID and when to use them πŸ”’

Explore the evolving landscape of PHP generics, including the challenges and potential solutions. This comprehensive analysis covers reified generics, type inference, performance considerations, and alternatives like dedicated Collections syntax.

25th of August, 2024