Laravel-MongoDB CRUD

Setup Database

In this example we are creating a sample library database in MongoDB. Inside this we have a collection called books. Below are few documents from the books collection.

MongoDB is schemaless and Moloquent's schema builder support is limited . Although you may insert the collection into the database using migrations, in this example, we are doing this straight into the database from mongo shell.