Added a MongoDB-backed unique constraint for Laravel validations, similar to the one available for Eloquent.