'datetime', ]; } public function account() { if ($this->item_type === Profile::class) { return AccountService::get($this->item_id, true); } } public function profile(): BelongsTo { return $this->belongsTo(Profile::class, 'item_id'); } }