Best and elegant way to update Laravel model with relationship

前端 未结 0 590
野的像风
野的像风 2021-01-04 01:14

Product Model

class Product extends Model
{
    public function features(): HasOne
    {
        return $this->hasOne(Feature::class);
    }
}
相关标签:
回答
  • 消灭零回复
提交回复
热议问题