🔥 Laravel tip: update the parent model timestamp when a child is updated
Mar 13, 2022
Did you know you can update the parent model timestamp when a child is updated?
If you have a "belongsTo" or "belongsToMany" relationship you can define a "$touches" property to do this.
If you have a "belongsTo" or "belongsToMany" relationship you can define a "$touches" property to do this.
Other tips:
🔥 Laravel Tip: JSON Where Clauses
Mar 31, 2022
🔥 Laravel Tip: Eager loading with limits
Nov 11, 2022