where("group", ConfigGroup::MESSAGE_NOTIFICATION) ->where("key", "setting") ->first(); $this->notificationSetting = $settingResult ? json_decode($settingResult->value, true) : []; } /** * Get the channels the event should broadcast on. * * @return array */ public function broadcastOn(): array { return [ new PrivateChannel('channel-name'), ]; } }