Laravel 12.21.0 introduces singleton and scoped container attributes that can be applied directly to classes without manual registration. The release adds a whereValueBetween() query builder method for checking if values fall between two columns, strict validation options for numeric and boolean types, factory relationship controls, URI stringable conversion, and fluent empty check methods.
Table of contents
# Singleton and Scoped Container Attributes# Check if a Value is Between to Columns with the Query Builder# Allow Globally Disabling Factory Relationships# Get a URI as a Stringable Instance# Strict Numeric and Boolean Validation# Fluent Empty Check Methods# Release notes# v12.21.0Sort: