In such a scenario, you can try to do the opposite. For example: id , created_at and updated_at field as $ protected. How:
protected $guarded = ['id', 'created_at', 'updated_at'];
Except for these others, fillable i.e. assigned mass .
You can find more details in the Laravel White Paper
Security Attributes
While $ fillable is used as a whitelist of attributes you should also use $ protected . The protected $ property must contain an array of attributes that you do not want to be assigned as mass. All other attributes not included in the array will be massive reassignment So $ protected works like black <black> Of course you must use either $ fillable or $ protected - not both.
Mahfuzul alam
source share