Issue #12
Laravel Magazine Weekly - PHP Security Patches for a Postgres SQL Injection Flaw (Issue 12)
Nov 21 – Nov 27, 2026
News
-
PHP Ships Security Patches for a Postgres SQL Injection Flaw
PHP 8.2.33, 8.3.33, 8.4.24, and 8.5.9 fix a high-severity SQL injection in the pgsql extension, along with two other security issues. Laravel developers on Postgres should check their PHP version.
Articles
-
Building an API Rate-Limiting System with Named Throttle Limiters and Sanctum
A walkthrough of giving each API token tier its own request budget using named rate limiters instead of a single global throttle.
-
Atomic Updates with Eloquent's increment() and decrement() Methods
Eloquent's increment() and decrement() do the math in the database, avoiding the read-modify-save pattern and its race conditions.
-
Attribute::make(): Replacing Accessors and Mutators with One Clean API
Attribute::make() puts the get and set logic for a model field in one place, replacing paired accessor and mutator methods.
-
Rule::when(): Conditional Validation Without the If-Statement Soup
Rule::when() attaches validation rules conditionally right where they belong, so you can drop the if-statements that build up a rules array by hand.