Protected method allows to set fillable or guarded fields in the model.
#laravel#model
classItemextendsModel{protected$fillable=['title','content'// Only changes to these fields ARE allowed.];}classOtherItemextendsModel{protected$guarded=['id','date'// Changes to these fields ARE NOT allowed.];}