🧽Forget Metadata

Clear content of metadata make it null, or remove specific keys.

πŸ”₯ forgetMetadataById

// Syntax
$model->forgetMetadataById(string $id): bool

Example Usage


// Forget the content of metadata by id
if ($model->forgetMetadataById($id)) {
    echo "Metadata successfully forged";
} else {
    echo "No metadata to forget or forgetting failed";
}


$status = $model->forgetMetadataById($id); // return boolean
// Will be : []

Return Type β‡’ Boolean


πŸ”₯ forgetKeysMetadataById

Delete specific values by keys from the metadata field by id.

Example Usage

Parameters
Data Types

id

string

keys

array, Collection, string, int, null

Return Type β‡’ Boolean


πŸ”₯ forgetKeyMetadataById

Example usage

Parameters
Data Types

id

string

key

string, int, null

Return Type β‡’ Boolean

Last updated