public function restore(BlueprintInterface $blueprint) { Notification::where($this->getAttributes($blueprint))->update(['is_deleted' => false]); }
/** * @param PostWasRestored $event */ public function whenPostWasRestored(PostWasRestored $event) { $this->notifications->restore($this->getNotification($event->post)); }