We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2edd1b7 commit 0f552daCopy full SHA for 0f552da
src/Traits/Categorizable.php
@@ -15,7 +15,7 @@ trait Categorizable
15
*/
16
public static function bootCategorizable()
17
{
18
- static::deleted(function (self $model) {
+ static::deleting(function (self $model) {
19
$model->categories()->detach();
20
});
21
}
0 commit comments