loading...

Laravel Model Events & Observers Tutorial

ellis22 profile image Ellis ・1 min read


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

Discussion

markdown guide