orderBy('id')->first(); if ($notificationAction === null || $notificationAction->deliveryLogs()->exists()) { return; } NotificationDeliveryLog::factory() ->forNotificationAction($notificationAction) ->succeeded() ->create([ 'payload_metadata' => [ 'project_key' => 'CORE', 'ticket_key' => 'CORE-1', ], ]); NotificationDeliveryLog::factory() ->forNotificationAction($notificationAction) ->retryable() ->create([ 'payload_metadata' => [ 'project_key' => 'CORE', 'ticket_key' => 'CORE-2', ], ]); } }