morphTo(); } public function jointPermissions(): HasMany { return $this->hasMany(JointPermission::class, 'entity_id', 'watchable_id') ->whereColumn('watches.watchable_type', '=', 'joint_permissions.entity_type'); } public function getLevelName(): string { return WatchLevels::levelValueToName($this->level); } public function ignoring(): bool { return $this->level === WatchLevels::IGNORE; } }