Skip to content

Commit

Permalink
Update Categorizable.php
Browse files Browse the repository at this point in the history
  • Loading branch information
MoamenEltouny authored Nov 21, 2021
1 parent 2edd1b7 commit 0f552da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/Categorizable.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ trait Categorizable
*/
public static function bootCategorizable()
{
static::deleted(function (self $model) {
static::deleting(function (self $model) {
$model->categories()->detach();
});
}
Expand Down

0 comments on commit 0f552da

Please sign in to comment.