We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5e1c8b commit 7a177ddCopy full SHA for 7a177dd
system/BaseModel.php
@@ -121,9 +121,13 @@ abstract class BaseModel
121
protected ?DataConverter $converter = null;
122
123
/**
124
- * If this model should use "softDeletes" and
125
- * simply set a date when rows are deleted, or
126
- * do hard deletes.
+ * Determines whether the model should protect field names during
+ * mass assignment operations such as insert() and update().
+ *
127
+ * When set to true, only the fields explicitly defined in the $allowedFields
128
+ * property will be allowed for mass assignment. This helps prevent
129
+ * unintended modification of database fields and improves security
130
+ * by avoiding mass assignment vulnerabilities.
131
*
132
* @var bool
133
*/
0 commit comments