The Laralist

Browse past editions.

#55 - Running PHP tests in parallel on GitHub actions โšก, Laravel v12.10 released ๐Ÿš€, translation-checker ๐Ÿ“ฆ, The perfect workflow for vibe coding with no errors in Cursor โœ…, Process facade๐Ÿ’ก

Learn how to optimize PHPUnit/Pest tests on GitHub by splitting them into chunks for parallel execution, significantly reducing test suite runtime, as demonstrated by Oh Dear's approach.

27th of April, 2025

#54 - Memoizing the cache in Laravel ๐Ÿ’พ, Access the authenticated user in jobs ๐Ÿ“ฆ, Juniors are underrated ๐Ÿ’Ž, You can do some pretty cool stuff with enums ๐Ÿ†’, data_fill method๐Ÿ’ก

New memoize driver enhances caching by storing values in memory for the request duration, reducing repeated cache store hits and improving performance, especially for costly operations.

20th of April, 2025

#53 - Preventing N+1 issues globally โšก, NativePHP for desktop v1 is finally here ๐Ÿ–ฅ๏ธ, laravel-model-metadata ๐Ÿ“ฆ, The 13 software engineering laws ๐Ÿ“œ, Laravel v12.8 released ๐Ÿš€

Laravel 12.x introduces global auto eager loading to combat the N+1 problem, enhancing performance by loading related models in a single query. This feature can be enabled globally, per model, or per query.

13th of April, 2025

#52 - Laravel Wayfinder public beta ๐Ÿงญ, In retrospect, DevOps was a bad idea ๐Ÿ’ฃ, ddBody() ๐Ÿ’ก, Counter strike like game server with PHP ๐ŸŽฎ, ImapEngine ๐Ÿ“ฆ

Laravel Wayfinder generates fully-typed TypeScript functions for controllers and routes, enabling direct Laravel endpoint calls in client code. Ideal with Inertia, it simplifies backend-frontend integration.

6th of April, 2025

#51 - Laravel v12.4 released ๐Ÿš€, Using PHP as a (Terrible) Video Player ๐ŸŽฌ, config:show ๐Ÿ’ก, Counting 100 Billion Unique IDs the Simple Way ๐Ÿ”ข, mail-log ๐Ÿ“ฆ

The latest version introduces significant updates, including the AsHtmlString cast for handling HTML, Arr::sole() method, QueueFake::listenersPushed() method, except() method for models, whereNull() and whereNotNull() for AssertableJson class, shouldRun() method in migrations, and the pipe() method for query builders.

30th of March, 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.

#50 - How Cursor (AI IDE) Works ๐Ÿค–, Laravelโ€™s New JobQueueing Event ๐Ÿšฆ, PHP Executables with PHPacker ๐Ÿ“ฆ, Automatic Emails on Failed Scheduled Commands ๐Ÿ’ก

Explore the inner workings of AI coding tools like Cursor, Windsurf, and Copilot. Understanding their frameworks can significantly boost productivity, especially in complex codebases, by optimizing prompt engineering and tool interactions.

23rd of March, 2025

#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

#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