guarded instead of fillable

This commit is contained in:
Benjamin Takats
2022-12-01 16:01:24 +01:00
parent 37695943ef
commit e3af9cf67d
37 changed files with 120 additions and 197 deletions

View File

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