chapter hgroup + calming decor
This commit is contained in:
parent
0545b131de
commit
94d14d70c1
370 changed files with 9583 additions and 1566 deletions
|
|
@ -100,18 +100,8 @@ abstract class Uuid implements Stringable
|
|||
* Removes the current UUID from cache,
|
||||
* recursively including all children if needed
|
||||
*/
|
||||
public function clear(bool $recursive = false): bool
|
||||
public function clear(): bool
|
||||
{
|
||||
// For all models with children: if $recursive,
|
||||
// also clear UUIDs from cache for all children
|
||||
if ($recursive === true && $model = $this->model()) {
|
||||
if (method_exists($model, 'children') === true) {
|
||||
foreach ($model->children() as $child) {
|
||||
$child->uuid()->clear(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($key = $this->key()) {
|
||||
return Uuids::cache()->remove($key);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue