1 | initial version |
The $fillable
attribute is a property in Laravel that allows developers to specify which attributes of a model should be mass assignable. This means that when using mass assignment methods like create
or update
, only the attributes listed in $fillable
will be allowed to be updated in bulk. This is a security feature that helps prevent unintended modifications to sensitive attributes of a model.