Can anyone confirm the new package name or provide an example ?? #2638
              
                
                  
                  
                    Answered
                  
                  by
                    GromNaN
                  
              
          
                  
                    
                      piyushpathar
                    
                  
                
                  asked this question in
                Q&A
              
            -
| how to use it in code after the change? Here's what I have so far: use Jenssegers\Mongodb\Facades\MongoDB; } | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            GromNaN
          
      
      
        Oct 9, 2023 
      
    
    Replies: 1 comment 1 reply
-
| As far as I can see  To begin a transaction, you can use the  /** @var \MongoDB\Laravel\Connection */
$mongodb = DB::connection('mongodb');
$mongodb->beginTransaction(); | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        GromNaN
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
As far as I can see
Jenssegers\Mongodb\Facades\MongoDBnever existed in any version.To begin a transaction, you can use the
DBfacade of Eloquent.