Refined Eloquent Collection Management Managing Eloquent models often involves using appended attributes—calculated properties like initials or full names that don't exist in your database. While useful for the frontend, these virtual columns break things when you try to use `insert` or `fill` methods, as Laravel attempts to persist them to the database. Before this update, developers had to loop through every model in a collection to manually reset the appends array. Laravel 12.36 introduces the `withoutAppends` and `setAppends` methods directly on the collection class. This means you can strip away those non-persistent attributes from an entire dataset in a single, fluent call, keeping your code clean and your database operations safe from column-not-found errors. Precision Concurrency in HTTP Batches Parallelizing requests is a standard way to boost performance, but firing off dozens of requests simultaneously can overwhelm external APIs or trigger rate limits. Laravel previously introduced HTTP batches to handle groups of requests with advanced hooks, but it lacked a straightforward way to throttle that speed. With the latest PR from contributor Wendell, you now have granular control over concurrency. For the standard `Http::pool`, you simply pass the maximum number of concurrent requests as a second parameter. For the newer HTTP Batches, you can chain a `concurrency()` method. This ensures you never exceed a specific number of simultaneous connections, allowing for high-performance data fetching without the risk of getting your IP blacklisted. Navigation Insight via Previous Route Names Web applications frequently need to know where a user just came from to provide better context or conditional logic. While we have long had access to the previous URL, URLs can be messy, dynamic, and hard to parse reliably. Taylor Otwell recently added a `previousRoute` method to the session object. This allows you to retrieve the named route of the last page visited, such as `post.index` or `dashboard`, rather than a raw string like `/posts?page=2&filter=recent`. It is a small but powerful quality-of-life improvement that makes navigation logic significantly more robust. Summary of Laravel 12.36 These updates prove that even as Laravel matures, the team and community continue to find ways to polish the developer experience. Whether you are managing complex collections, throttling external API traffic, or building intelligent navigation flows, these tools provide cleaner syntax and more reliable results. Update your dependencies today and start using these features to simplify your codebase.
HTTP Batches
Products
Oct 2025 • 1 videos
High activity month for HTTP Batches. Laravel among the most active voices, with 1 videos across 1 sources.
Oct 2025
- Oct 30, 2025