Eloquent
2 exercises work on this concept, by writing code in the browser.
In Practice
- Computed default values with defaults() The HasDefaultAttributes trait gives the model a defaults() method: default values that can read the configuration or the clock, as soon as new Abonnement runs.
- Reading back the columns the database computes with #[Refreshes] A model marked #[Refreshes] reads back, after every write, the columns the database fills in itself: default value, generated column.