Hello Everybody,
I am using MongoDB v7.0.8
along with Laravel v10
.
OS: Ubuntu 22.04.4 LTS
MongoDB Package: **"mongodb/laravel-mongodb": "^4.1"**
Since MongoDB is a schema-less noSql database, I have two questions here:
- Do we really need to make migrations in Laravel when we use MongoDB as our back end database?
- How do we validate schema design in Laravel when saving data to a MongoDB document? I would like to emphasise here that validation schema w.r.t interaction with model when persisting data to database.
Kindly guide me in the right direction, as schema validation is very important before saving data into MongoDB database.