数据库时间字段cast

This commit is contained in:
2022-08-10 10:09:50 +08:00
parent 15da10001b
commit fb132cc088
6 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,6 @@ use Illuminate\Support\Carbon;
class ProgramVideos extends Model
{
protected $fillable = ["video_bvid", "start_part", "start_time", "stop_part", "stop_time"];
protected $dateFormat = 'U';
public function program(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Programs::class, "program_id", "id");