DEV Community

Ellis
Ellis

Posted on

Laravel Model Events & Observers Tutorial


Laravel Model events allow you to tap into various points in a model’s lifecycle, and can even prevent a save or delete from happening.

The model has the following events at the time of writing:

  • retrieved
  • creating
  • created
  • updating
  • updated
  • saving
  • saved
  • deleting
  • deleted
  • restoring
  • restored

Top comments (0)