LODM module is intended to bring the Spiral ODM component functionality into your Laravel applications. This component provides the ability to manage your MongoDB data in an OOP way using your models compositions and aggregations.
Package installation can be performed using the simple composer command composer require wolfy-j/lodm
.
To include ODM functionality in your application, you have to register the service provider Spiral\LODM\Laravel\ODMServiceProvider
and CLI command Spiral\LODM\Commands\SchemaUpdate
in the app.php config and ConsoleKernel accordingly. The module provides two configuration files which describe the class location directories (by default whole application), the set of connected MongoDB databases (ODM does not use any of Laravel's database functionality) and options that can simplify document creation.
Full documentation with examples is available here.
Please do not open issue tickets in this github project unless they are related to the integration process. Use Primary Respository for ODM related issues.