πŸ™Forget Metadata

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

πŸ”₯ forgetMetadata

// Syntax
$model->forgetMetadata(): bool

Example 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 : []

Return Type β‡’ Boolean


πŸ”₯ forgetKeysMetadata

Delete specific values by keys from the metadata field.

Example Usage

Parameters
Data Types

keys

array, Collection, string, int, null

Return Type β‡’ Boolean


πŸ”₯ forgetKeyMetadata

Example usage

Parameters
Data Types

key

string, int, null

Return Type β‡’ Boolean

Last updated