Voyage AI joins MongoDB to power more accurate and trustworthy AI applications on Atlas.

Explore o novo chatbot do Developer Center! O MongoDB AI chatbot pode ser acessado na parte superior da sua navegação para responder a todas as suas perguntas sobre o MongoDB .

Laravel MongoDB 4.2 Released, With Laravel 11 Support

Rishabh Bisht1 min read • Published Aug 28, 2024 • Updated Aug 28, 2024
Facebook Icontwitter iconlinkedin icon
Classifique este anúncio
star-empty
star-empty
star-empty
star-empty
star-empty
The PHP team is happy to announce that version 4.2 of the Laravel MongoDB integration is now available!

Highlights

Laravel 11 support
The MongoDB Laravel integration now supports Laravel 11, ensuring compatibility with the latest framework version and enabling developers to leverage its new features and enhancements. To apply transformation on model attributes, the new recommended way is to declare the Model::casts method.
Fixed transaction issue with firstOrCreate()
Previously, using firstOrCreate() in a transaction would result in an error. This problem has been resolved by implementing the underlying Model::createOrFirst() method with the atomic operation findOneAndUpdate.
Support for whereAll and whereAny
The library now supports the new methods whereAll and whereAny, introduced in Laravel 10.47.

Instalação

This library may be installed or upgraded with:
1composer require mongodb/laravel-mongodb:4.2.0

Resources

Documentation and other resources to get you started with Laravel and MongoDB databases are shared below:
Give it a try today and let us know what you think! Please report any ideas, bugs, or feedback in the Repositório do GitHub or the PHPORM Jira project, as we continue to improve and enhance the integration.

Facebook Icontwitter iconlinkedin icon
Classifique este anúncio
star-empty
star-empty
star-empty
star-empty
star-empty
Relacionado
exemplo de código

Go-FIFA


Jul 07, 2022 | 2 min read
Início rápido

Pipelines de agregação complexos com Baunilha PHP e MongoDB


Sep 05, 2024 | 10 min read
Notícias e Anúncios

Laravel MongoDB 5.0: Lançamento principal com novos recursos interessantes!


Sep 13, 2024 | 1 min read
Notícias e Anúncios

Extensão PHP do MongoDB 1.13.0 – Lançamento


May 24, 2022 | 1 min read