Model::preventSilentlyDiscardingAttributes throws error for missing [created_at, updated_at] in fillable #572
Labels
bug
Something isn't working
enhancement
New feature or request
question
Further information is requested
Describe the bug
Laravel 9.28 added Eloquent mode to prevent silently discarding fills for attributes not in $fillable (#43893)
To Reproduce
AppServiceProvider
'sboot
methoddeposit
Trace Error
{"type":"error","message":"Transaction failed. Message: Add fillable property [created_at, updated_at] to allow mass assignment on [Bavix\\Wallet\\Models\\Transaction]."}
Expected behavior
created_at
andupdated_at
should not throw error like thisServer:
The text was updated successfully, but these errors were encountered: