Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 60731aa

Browse filesBrowse files
committed
Clear the callbacks when clearing booted models
1 parent f404792 commit 60731aa
Copy full SHA for 60731aa

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎src/Illuminate/Database/Eloquent/Model.php

Copy file name to clipboardExpand all lines: src/Illuminate/Database/Eloquent/Model.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ protected static function booted()
381381
public static function clearBootedModels()
382382
{
383383
static::$booted = [];
384+
static::$bootedCallbacks = [];
384385

385386
static::$globalScopes = [];
386387
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.