You've already forked lubo_comment_query
支持主动导入弹幕
This commit is contained in:
@ -6,8 +6,14 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class VideoDanmakus extends Model
|
||||
{
|
||||
protected $guarded = [];
|
||||
protected $table = "video_danmakus";
|
||||
protected $dateFormat = 'U';
|
||||
public $timestamps = false;
|
||||
protected $casts = [
|
||||
'created_at' => 'datetime:Y-m-d H:i:s',
|
||||
];
|
||||
protected $fillable = ["from", "from_mid", "content"];
|
||||
public function video(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Videos::class, "video_bvid", "bvid");
|
||||
|
Reference in New Issue
Block a user