Пример #1
0
 public static function boot()
 {
     parent::boot();
     // Since using Participant::restored triggers before the message is actually saved, let's fire the event when the message is created.
     Message::created(self::raiseEvent());
 }