Problem
InAppNotification uses the Queueable trait but does not implement ShouldQueue. Notifications fire synchronously. When NotificationController::store() sends to 'all' users, it loads the entire user table and blocks the request for the full delivery duration.
Required Change
Add implements ShouldQueue to InAppNotification so notifications are dispatched to the queue.
Files
app/Notifications/InAppNotification.php
Problem
InAppNotificationuses theQueueabletrait but does not implementShouldQueue. Notifications fire synchronously. WhenNotificationController::store()sends to'all'users, it loads the entire user table and blocks the request for the full delivery duration.Required Change
Add
implements ShouldQueuetoInAppNotificationso notifications are dispatched to the queue.Files
app/Notifications/InAppNotification.php