PHP 8.6 pack() and unpack() Get Endianness Modifiers October 6, 2026 php php-86 php-internals binary-data tips PHP 8.6 adds < and > endianness modifiers to pack() and unpack() for signed integers and floats. Here is the syntax, the rules, and one upgrade gotcha. Read more →
Laravel 14 Eloquent defaults(): Model Attribute Defaults That Run Code October 5, 2026 laravel laravel-14 eloquent php tips Laravel 14 adds a defaults() method to Eloquent models, so attribute defaults can use config, feature flags, and dates. Here is how it behaves. Read more →
PHP 8.6 clamp() and Duration: Cleaner Retry Backoff for PHP Apps October 4, 2026 php php-86 internals rfc tips PHP 8.6 adds clamp() and a nanosecond-precision Time\Duration class. See how they tidy up exponential backoff and other bounded-value code. Read more →
MySQL Recursive CTEs for PHP Developers: Querying Hierarchical Data Without the Pain April 18, 2026 mysql database php laravel sql tips Recursive CTEs in MySQL let you query trees, org charts, and nested categories in a single query. Here's how to use them effectively with PHP. Read more →