@@ 72-81 (lines=10) @@ | ||
69 | * |
|
70 | * @return bool |
|
71 | */ |
|
72 | public function conversationWasLocked(ConversationWasLockedEvent $event): bool |
|
73 | { |
|
74 | $data = [ |
|
75 | 'loggable_id' => $event->conversation->getKey(), |
|
76 | 'loggable_type' => get_class($event->conversation), |
|
77 | 'event_type' => ConversationWasLockedEvent::class |
|
78 | ]; |
|
79 | ||
80 | return $this->create($data); |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * Handle a ConversationWasPinned event. |
|
@@ 90-99 (lines=10) @@ | ||
87 | * |
|
88 | * @return bool |
|
89 | */ |
|
90 | public function conversationWasPinned(ConversationWasPinnedEvent $event) |
|
91 | { |
|
92 | $data = [ |
|
93 | 'loggable_id' => $event->conversation->getKey(), |
|
94 | 'loggable_type' => get_class($event->conversation), |
|
95 | 'event_type' => ConversationWasPinnedEvent::class |
|
96 | ]; |
|
97 | ||
98 | return $this->create($data); |
|
99 | } |
|
100 | ||
101 | /** |
|
102 | * Handle a PostWasDeleted event. |