Complete the code to allow mass assignment for the 'name' attribute in a Laravel model.
protected $fillable = ['[1]'];
The $fillable property specifies which attributes can be mass assigned. Here, 'name' is allowed.
Complete the code to protect all attributes from mass assignment in a Laravel model.
protected $guarded = ['[1]'];
Setting $guarded to ['*'] blocks mass assignment on all attributes.
Fix the error in the model to allow mass assignment only for 'title' and 'content'.
protected $fillable = ['title', '[1]'];
Both 'title' and 'content' must be listed in $fillable to allow mass assignment.
Fill both blanks to define a model that blocks mass assignment on all attributes except 'email'.
protected $guarded = ['[1]']; protected $fillable = ['[2]'];
Setting $guarded to ['*'] blocks all attributes, but $fillable overrides to allow 'email'.
Fill all three blanks to create a mass assignment safe model that allows 'name' and 'email' but blocks 'password'.
protected $fillable = ['[1]', '[2]']; protected $guarded = ['[3]'];
The $fillable array lists 'name' and 'email' as allowed for mass assignment. The $guarded array blocks 'password' to protect it.