我做了应用程序,用户有自己的笔记(基于外键)。现在在表中,我想显示他的名字,但我不能传递它:class Pilot extends Model protected $table = 'pilots'; return $this->belongsTo(Pilot::class);备注控制器(我想在索引页面中显示</em
我在MySQL [items, orderList]中创建了两个表,orderlist中的外键id引用了items中的主键id。现在我想从Java语言中的两个表中获取所有columns{id, name, price (in Items), and quantity (in orderList)},我如何才能只显示一次i