The problem of storing POST data in MongoDB after PHP accepts MongoDB data

currently uses TP5.0 "s framework. Since there is a large form with more than 30 fields in the background, do you have to write a field dictionary first, and then judge that Filter has dropped the extra fields (for example, someone else may submit a field such as is_admin).
if you want to write a dictionary, it feels like there are many fields. I don"t know if there is any quick way. So I would like to ask you, when saving Mongo, do you usually accept it all according to the order or do you have a field limit?

allowField (true) has just been configured in tp5, and this method is invalid because mongo does not have a fixed table structure.

Oct.12,2021
Menu