Laravel 14 Adds a defaults() Method to Eloquent Models
- by Paul Redmond
- Published on Laravel News
- Curated on
- News
- Laravel 14
Laravel 14 adds a defaults() method to Eloquent models, so default attribute values can use config, feature flags, and dates instead of constant expressions.
The post Laravel 14 Adds a defaults() Method to Eloquent Models appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.