示例#1
0
 /**
  * @PostPersist
  */
 public function created()
 {
     User::incrementCounter('comments_sent', $this->user_id);
     User::incrementCounter('comments_received', $this->upload->user_id);
     \FA\Legacy\Notifications::dispatch('upload_comment', $this->id, $this->upload->user_id, $this->upload->id);
 }
示例#2
0
 /**
  * @PostPersist
  */
 public function created()
 {
     User::incrementCounter('journals', $this->user_id);
     \FA\Legacy\Notifications::dispatch('upload', $this->id);
 }
示例#3
0
 /**
  * @PostPersist
  */
 public function created()
 {
     User::incrementCounter('favorites', $this->user->id);
     \FA\Legacy\Notifications::dispatch('favorite', $this->id, $this->user->id, $this->upload->id);
 }