'array', ]; protected $attributes = [ 'handled' => false, ]; public function reportedUser(): BelongsTo { return $this->belongsTo(User::class, 'reported_user_id'); } public function reportingUser(): BelongsTo { return $this->belongsTo(User::class, 'reporting_user_id'); } public function handledBy(): BelongsTo { return $this->belongsTo(User::class, 'handled_by_id'); } /** * * @return Collection|ReportPlayerInfoListEntry[] * */ public function playerInfos(): Collection { $collection = collect(); foreach ($this->player_infos as $playerInfo) { $collection->add(ReportPlayerInfoListEntry::makeFromArray($playerInfo)); } return $collection; } }