/** * Create a new event instance. * * @return void */ public function __construct(Reply $reply, Topic $topic, User $user) { $this->reply = $reply; $this->topic = $topic; $this->user = $user; $this->weight = Config::get('app.reply_gain_weight'); $this->karma = 0; $this->notifiable = $reply; $user->increment('reply_count'); $topic->increment('reply_count'); }