
Laravel MongoDB 5.12.0 Introduces Native Queryable Encryption Support
The mongodb/laravel-mongodb package released version 5.12.0 on October 26, 2026, adding first-class support for MongoDB Queryable Encryption. This update allows developers to declare encrypted fields directly in connection configurations, enabling the driver to handle encryption, decryption, and queries transparently without altering Eloquent model structures. The release includes new Artisan commands for managing encrypted collections and data keys, while also addressing security vulnerabilities and fixing various bugs related to query macros and type coercion. Notably, it enforces stricter security by blocking server-side JavaScript operators and requires MongoDB 8.0 or later for range queries on encrypted data.

