'datetime', 'status' => EntityStatus::class, ]; } public function category(): BelongsTo { return $this->belongsTo(Category::class); } public function tags(): BelongsToMany { return $this->belongsToMany(Tag::class, 'entity_tag_maps', 'entity_id', 'tag_id') ->wherePivot('entity_type', self::class) ->withTimestamps(); } }