编辑追加时,展示节目结束图

This commit is contained in:
2022-08-02 11:33:48 +08:00
parent 9d382e1725
commit 8d765ad31f
3 changed files with 18 additions and 4 deletions

View File

@ -8,4 +8,8 @@ class ProgramAppends extends Model
{
protected $fillable = ["name", "from", "price", "append"];
protected $dateFormat = "U";
public function program(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Programs::class, "program_id", "id");
}
}