We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a09c24e commit c23fa5dCopy full SHA for c23fa5d
src/Message.php
@@ -58,6 +58,20 @@ class Message extends Model
58
'widget' => 'array',
59
];
60
61
+ protected static function booted(): void
62
+ {
63
+ static::deleting(function (self $message) {
64
+
65
+ if (method_exists($message, 'isForceDeleting')) {
66
+ if ($message->isForceDeleting()) {
67
+ $message->reads()->delete();
68
+ }
69
+ } else {
70
71
72
+ });
73
74
75
/**
76
* @return class-string<TConversation>
77
*/
0 commit comments