1. Home
  2. Laravel
  3. Event

A helper function for raising events.

#laravel#helper
event(new ItemWasAdded($item));
copy
Full Laravel cheatsheet