public function comment(Blog $id, StoreComment $request): JsonResource 	{ 		$comment = $id->createComment($request);  		$user = $request->user();  		$notificationTargets = $id->commentsAuthorsId([$user->user_id]); // get authors of comments for the same model, exclude current comment author  		if (($authorId = $id->getAuthorId()) !== $user->user_id) { 			$notificationTargets[] = $authorId; // add model author if not same as excluded 		}  		NewNotification::dispatch( 			PushNotificationType::NEW_COMMENT, 			$comment, 			$user, 			array_unique($notificationTargets) 		);  		return new CommentResource($comment->loadIncludes()); 	}