Home > Article > Backend Development > MySQL table defaults to null, but what is the correct way to handle the incoming null value in laravel?
There are a lot of forms that are text, because they need to be handwritten, and the fields are int and null by default, so you don’t need to fill them in.
If you do not fill it in when inserting, an error will be reported. Because there are a large number of such fields, where is the best way to handle them?