You've already forked lubo_comment_query
数据库时间字段cast
This commit is contained in:
@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class VideoDanmakus extends Model
|
||||
{
|
||||
protected $table = "video_danmakus";
|
||||
protected $dateFormat = 'U';
|
||||
public function video(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Videos::class, "video_bvid", "bvid");
|
||||
|
Reference in New Issue
Block a user