You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Property's CREATED_AT AND UPDATED_AT are right, since Eloquent's HasTimestamps traits ( \Illuminate\Database\Eloquent\Concerns\HasTimestamps) uses these two constants.
However, the generated $casts are with the wrong keys. The self::CREATE_TIME and self::UPDATE_TIME keys should be self::CREATED_AT and self::UPDATED_AT.
The text was updated successfully, but these errors were encountered:
A simplified
models.php
config is as following:timestamp
enabled with customized fields$hidden
&$fillable
in base filesThe generated base models have the following consts and casts:
Property's
CREATED_AT
ANDUPDATED_AT
are right, since Eloquent'sHasTimestamps
traits (\Illuminate\Database\Eloquent\Concerns\HasTimestamps
) uses these two constants.However, the generated
$casts
are with the wrong keys. Theself::CREATE_TIME
andself::UPDATE_TIME
keys should beself::CREATED_AT
andself::UPDATED_AT
.The text was updated successfully, but these errors were encountered: