πForget Metadata
Clear content of metadata make it null, or remove specific keys.
π₯ forgetMetadata
forgetMetadata// Syntax
$model->forgetMetadata(): boolExample Usage
// Forget the metadata
if ($model->forgetMetadata()) {
echo "Metadata successfully forged";
} else {
echo "No metadata to forget or forgetting failed";
}
$status = $model->forgetMetadata(); // return boolean
// Will be : []
π₯ forgetKeysMetadata
forgetKeysMetadataDelete specific values by keys from the metadata field.
Example Usage
Parameters
Data Types
keys
array, Collection, string, int, null
π₯ forgetKeyMetadata
forgetKeyMetadata It's an Alias of the `forgetKeysMetadata` method used for forgetting Individual Key
Example usage
Parameters
Data Types
key
string, int, null
Last updated