π§½Forget Metadata
Clear content of metadata make it null, or remove specific keys.
π₯ forgetMetadataById
forgetMetadataById// Syntax
$model->forgetMetadataById(string $id): boolExample 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 : []
π₯ forgetKeysMetadataById
forgetKeysMetadataByIdDelete specific values by keys from the metadata field by id.
Example Usage
Parameters
Data Types
id
string
keys
array, Collection, string, int, null
π₯ forgetKeyMetadataById
forgetKeyMetadataById It's an Alias of the `forgetKeysMetadataById` method used for forgetting Individual Key
Example usage
Parameters
Data Types
id
string
key
string, int, null
Last updated