Freeze time in PHP tests with Carbon setTestNow
Freeze Carbon::now() in PHP tests with setTestNow, reset it after each test, and avoid date leakage across your suite.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Freeze Carbon::now() in PHP tests with setTestNow, reset it after each test, and avoid date leakage across your suite.
ConfigAggregator merges module.config.php files with autoload overrides in a deterministic order. Learn why later providers win, numeric keys get replaced, and how to keep environment tweaks out of modules.
Switch Composer to classmap-authoritative mode to eliminate filesystem scans during class loading in production. This guide covers enabling the setting, regenerating the optimized autoloader, verifying the classmap covers all classes, and rollback steps if dynamic class discovery breaks.
Learn how to implement custom entities in Shopware 6 using the Data Abstraction Layer (DAL), including migrations, EntityDefinitions, and Criteria-based repository queries.
Learn how to retrieve and list pages in ProcessWire using $pages->find(), with a concrete blog index example, selector details, pagination, and common pitfalls.
Discover how Livewire’s wire:model.defer postpones server updates until form submission, cutting HTTP requests and boosting perceived speed—plus when it might mislead you.
Learn how to switch PHP versions on AlmaLinux 9 using AppStream modular repositories with DNF, including a step‑by‑step example and key limitations.
Migrate legacy string/integer constants to PHP 8.1+ backed enums for type-safe domain modeling. Covers validation with ::tryFrom(), exhaustive match expressions, and Doctrine ORM mapping.
Lumen’s stripped‑down kernel delivers <10‑30 ms boot time but omits many Laravel features. This architecture note covers the minimal bootstrap, trust boundaries, operational checks, failure modes, and when to move to a fuller framework or different runtime.