You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently tried to push raw data using Queue::pushRaw into a queue, but I didn't find a way to test the data inserted into the queue, which is a JSON. Maybe it would be a good idea to have variant methods of Queue::assertPushed for raw data. If a method to do this already exists, please let me know. Thanks guys.
Queue::assertPushedRawOn(
config('queue.notifications'),
function (string$payload) use ($userNotification, $queue) {
$data = json_decode($payload, true);
returnisset($data['user_id']) && $data['user_id'] === $userNotification->user_id;
}
);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I recently tried to push raw data using
Queue::pushRaw
into a queue, but I didn't find a way to test the data inserted into the queue, which is a JSON. Maybe it would be a good idea to have variant methods ofQueue::assertPushed
for raw data. If a method to do this already exists, please let me know. Thanks guys.Beta Was this translation helpful? Give feedback.
All reactions