/** * @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); }
/** * @PostPersist */ public function created() { User::incrementCounter('journals', $this->user_id); \FA\Legacy\Notifications::dispatch('upload', $this->id); }
/** * @PostPersist */ public function created() { User::incrementCounter('favorites', $this->user->id); \FA\Legacy\Notifications::dispatch('favorite', $this->id, $this->user->id, $this->upload->id); }