In this Larabit, you'll learn three different ways to listen for changes in Laravel Eloquent models, and react to those changes with the data being saved or modified. We'll take a shallow dive by using simple closure functions directly in the model classes, and then go deeper by using specific event and listener classes to utilize Eloquent's lifecycle hooks.
Using closure functions in Eloquent modelsFiring events from Eloquent's lifecycle hooksCreating and using Observer classes
