Laravel - Redis - Wildcard Subscriptions

Using the psubscribe method, you may subscribe to a wildcard channel, which may be useful for catching all messages on all channels. The channel name will be passed as the second argument to the provided closure:

    
    Redis::psubscribe(['*'], function ($message, $channel) {
        echo $message;
    });
    
    Redis::psubscribe(['users.*'], function ($message, $channel) {
        echo $message;
    });