📭Has Metadata
Checking metadata is exist or checking specific keys.
🔥 hasMetadata
hasMetadataCheck if records of the relationship exist.
regardless of whether the metadata content is empty or not.
// Syntax
$model->hasMetadata(): bool🔥 hasMetadataById
hasMetadataByIdCheck if a metadata record exists by ID.
regardless of whether its metadata field contains data or not.
// Syntax
$model->hasMetadataById(string $id): bool🔥 hasFilledMetadataById
hasFilledMetadataByIdCheck if a metadata record exists by ID.
Check if it contains non-empty data.
// Syntax
$model->hasFilledMetadataById(string $id): boolLast updated