一对一关联模型的问题?
public function category()
{
return $this->belongsTo(Category::class);
}
这段是什么意思? 大神们能不能给小白详细解释一下呢 ?
推荐文章: