$db public property
The MongoDB connection object or the application component ID of the MongoDB connection.
After the MongoDbMessageSource object is created, if you want to change this property, you should only assign it with a MongoDB connection object.
This can also be a configuration array for creating the object.
public yii\mongodb\Connection|array|string $db = 'mongodb'
Please login to continue.