Eloquent Refreshes: Load Generated Columns After Save
- by Paul Redmond
- Published on Laravel News
- Curated on
- Laravel Tutorials
Laravel's new Refreshes attribute reloads storedAs and virtualAs columns after create() and update(), so the model has the database value without refresh().
The post Eloquent Refreshes: Load Generated Columns After Save appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.