π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.
Last updated