guarded instead of fillable

This commit is contained in:
Benjamin Takats
2022-12-01 16:01:24 +01:00
parent 4699805e60
commit 470e9c68b8
37 changed files with 120 additions and 197 deletions

View File

@@ -10,14 +10,11 @@ class Participant extends Model
use HasFactory;
/**
* The attributes that are mass assignable.
* The attributes that aren't mass assignable.
*
* @var array
*/
protected $fillable = [
'first_name',
'last_name',
];
protected $guarded = [];
/**
* The attributes that should be cast to native types.