fillable property

List<String>? fillable
getter/setter pair

The attributes that are mass assignable. Example fillable = 'name'; A mass-assignment vulnerability occurs when a user passes an unexpected HTTP parameter through a request, and that parameter changes a column in your database you did not expect. For example, a malicious user might send an is_admin parameter through an HTTP request, which is then passed into your model's create method, allowing the user to escalate themselves to an administrator. While $fillable serves as a "white list" of attributes that should be mass assignable Importantly, you should use either $fillable or $guarded - not both. In the example below, all attributes

Implementation

List<String>? fillable;