guarded property

List<String>? guarded
getter/setter pair

The attributes that aren't mass assignable. you may also choose to use $guarded. The $guarded property should contain an array of attributes that you do not want to be mass assignable. All other attributes not in the array will be mass assignable. So, $guarded functions like a "black list". Importantly, you should use either $fillable or $guarded - not both. In the example below, all attributes

Implementation

List<String>? guarded;