支持主动导入弹幕

This commit is contained in:
2023-01-03 13:07:45 +08:00
parent cece95a5a4
commit 474b97a40a
8 changed files with 187 additions and 31 deletions

View File

@ -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");