Closed as not planned
Description
- Laravel-mongodb Version: 3.9.2
- PHP Version: 8.1.5
- Database Driver & Version: 5.0.9 Community
Description:
Unable to save new fields to an existing document
Steps to reproduce
- Create a document
- Load the document
- Attempt to add new fields as below:
$category->sort_order = $request->input('sort_order');
$category->image = $request->input('image'); // NEW FIELD
$category->status = $request->input('status');
$category->save();
Expected behaviour
The new field should be saved as part of the document
Actual behaviour
The field is not added
Metadata
Metadata
Assignees
Labels
No labels