Scheduled Garbage Collection, Composer Security, and Deferred Schema Loading
· Summarized
Key takeaways
- Laravel session cleanup can be moved from random requests to a scheduled session:gc command by setting the session lottery to zero.
- Composer’s cooldown policy delays newly released dependency versions during update or require operations, but it does not affect composer install from a lock file.
- Laravel 13.40 provides both slow-job callbacks and replica commit-ID checks, making long-running work and replication state observable without guesswork.
- Herd 2 and PhpStorm 2026.3 both add coding-agent workspaces, reflecting a shift toward running multiple isolated development tasks in parallel.
- The hosts recommend explicit dependency and extension configuration: PIE no longer implicitly selects missing extension packages, and Sloppy is intended to catch maintenance issues left behind by AI-generated PHP.
Summary
Laravel 13.39 schedules session garbage collection
Laravel 13.39 adds a session:gc Artisan command that runs the session driver’s cleanup on demand or on a schedule. Normally, expired sessions are removed randomly during requests according to the session lottery; setting that lottery to zero lets scheduled cleanup be the only mechanism. The release also adds disabled-primary-key support for Eloquent models and job-attempt duration reporting in milliseconds.
Laravel 13.39 expands validation, testing, and relationship behavior
The release adds min, max, between, and exact-size rules for arrays, including fluent rules and allowed keys. Testing updates cover migration events, HTML/plain mail fakes, bus responses, process exit codes, and rolling back every open transaction after tests. Belongs-to-many relationships now correctly support forceCreate and restore operations, while cache commands write temporary files before renaming them to avoid empty-cache failures.
PIE 1.5 requires explicit PHP extension choices
PIE 1.5 changes CI behavior by requiring explicit packages for missing PHP extensions; its former automatic package-selection flag is deprecated and ignored. The release adds pie upgrade, pie check-build-tools, pie search, multi-extension installation, and a no-dev option. In non-interactive mode, PIE does not install build tools automatically, so CI configuration must specify both extensions and prerequisites.
Laravel 13.40 adds slow-job callbacks and replica commit checks
Laravel 13.40 introduces callbacks for jobs or scheduled tasks that run beyond a specified number of seconds, paralleling the existing long-query callback. Read replicas can now be checked for a particular write’s commit ID instead of relying on guessed replication lag. Middleware can be inserted before or after an existing middleware, and strict request casting returns defaults for invalid values rather than unexpected conversions.
Filament 5.8 defers schemas until they enter the viewport
Filament 5.8 adds deferred schema loading for sections, tabs, wizards, repeater items, and builder blocks, rendering child schemas as they enter the viewport to reduce initial page work. Other changes include persistent table-group selections, rich-editor and Markdown height controls, exporter downloaders, reusable multi-factor challenge classes, placeholder stats, and Laravel Boost guidelines exposed as an agent skill.
Composer 2.11 adds a cooldown for new dependencies
Composer 2.11 introduces a configurable cooldown policy that prevents newly published package versions from being installed until a delay—from seconds to weeks—has elapsed, giving security advisories time to appear. The policy applies to composer update and composer require, not composer install, which follows composer.lock. The release also includes file-permission and TLS trust improvements.
Inertia 3.1 refreshes live props through broadcasts
Inertia 3.1 adds live props that refresh from broadcast events through transports such as Echo, Pusher, and Action Cable, avoiding polling and reducing reload requests. Props can expose loading states, throttle updates by default to one per second, support public/private/presence/encrypted channels, pause while tabs are hidden, and send values directly with broadcast props. Merge props cannot be live.
Flock offers a native, free alternative to Herd
Flock is presented as a free open-source Laravel development app for macOS, Windows, and Linux that runs native processes rather than Docker or virtual machines. It includes databases, a mail catcher, and a dump viewer without Herd Pro, supports PHP 8.1 through 8.5 with per-site versions, and currently limits Redis to macOS and Typesense to macOS and Linux.
Herd 2 adds agent workspaces and Laravel Cloud deployment
Herd 2 introduces Herd Studio, browser-based coding-agent workspaces, isolated parallel app environments, automatic Laravel artisan dev support, and direct Laravel Cloud deployment. Workspaces use copy-on-write-style sharing to avoid duplicating unchanged dependencies. The hosts also mention an application-management window, free AI models through OpenCode, per-feature AI controls, and an interface for selecting page elements to explain changes to an agent.
PhpStorm 2026.3 adds its own agent workspace
PhpStorm 2026.3 adds the Air coding-agent workspace, PHP 8.6 support, Laravel inspections for unknown configuration keys and missing methods, and improved type inference for generics, callables, and array shapes. Git worktrees can inherit local configuration, while the terminal, Laravel processes tab, remote SSH development, WSL setup, and error reporting receive additional improvements.
Sloppy checks AI-generated PHP for maintenance problems
Sloppy is a static-analysis tool aimed at issues type checkers and formatters may miss, including swallowed exceptions, duplicated logic, unfinished methods, Laravel controller problems, and inefficient queries such as N+1 access. It requires PHP 8.3 and Laravel 12 or 13, integrates with PHPStan, Psalm, Pint, Rector, CI, and Claude Code, and supports baselines so existing findings can be ignored.
Pollora runs WordPress inside Laravel
Pollora embeds WordPress in a Laravel application, installing WordPress through Composer and combining Laravel routing, controllers, Blade, Vite, and storage disks with WordPress’s ecosystem. It supports WordPress-aware route methods, PHP-attribute registration for post types and taxonomies, Blade-rendered Gutenberg blocks, and Artisan generators. The hosts call it a young, ambitious option and caution developers to think carefully before adopting it.
Laravel Storage Dedupler prevents repeated uploads
Laravel Storage Dedupler hashes uploaded files with SHA-1 so identical uploads can share one stored record. Its facade accepts uploaded files, local paths, and raw content; a model trait links attachments across models, and a file is deleted only when no model still references it. The package supports PHP 8.2+, Laravel 10–13, and shared storage such as S3 or R2.
Tutorials cover live props, sessions, strict casting, middleware, and AI drafts
The tutorials demonstrate real-time Inertia props with Laravel Reverb, scheduled deletion of expired sessions, strict request-input casting, and inserting middleware before or after existing middleware. The episode also recommends a Decide with Jev video on tying every AI check to the exact draft version so model recommendations remain aligned with the text being evaluated.
Sponsors
- PostShiba · PostShiba is a transactional email platform powering Bento’s delivery rates. The hosts highlight it for password resets, login links, receipts, and other time-sensitive messages, positioning it as a possible replacement for SendGrid, Mailgun, Resend, or SES. Jesse is gathering waitlist users and will reach out to prospective customers.
Show notes
Jake and Michael discuss all the latest Laravel releases, tutorials, and happenings in the community.
This episode is sponsored by PostShiba - PostShiba—the transactional email platform that powers Bento's amazing delivery rates.
Password resets. Login links. Receipts. The emails your users are sitting there refreshing their inbox for. You can even build Bento on PostShiba, it's all the raw sending power.
Jesse is currently gathering interest and customers to test this out so if you're looking for a replacement to SendGrid, MailGun, Resend, or SES then join the waitlist and he'll reach out.
Join the waitlist at PostShiba dot com..
Show links
- Scheduled Session Garbage Collection in Laravel 13.39
- PIE 1.5 Changes PHP Extension Installs in CI
- Slow Job Alerts and Replica Commit IDs in Laravel 13.40
- Deferred Schema Loading in Filament v5.8
- Cooldown Dependency Policy now in Composer 2.11
- Live Props for Real-Time Updates in Inertia.js v3.11
- Flock: A Free, Native Herd Alternative for Laravel
- Laravel Herd 2: Coding Agents, Workspaces, and Cloud Deploys
- Sponsor: PostShiba
- PhpStorm 2026.3 Adds an Agent Workspace and PHP 8.6 Support
- Sloppy: Static Analysis for AI-Written PHP
- Pollora: Run WordPress Inside a Laravel Application
- Prevent Duplicate File Uploads With Laravel Storage Dedupler
Tutorials
Follow this show on AudioBrevity and new episodes get summarized for you. Create a free account