belongsTo(User::class, 'user_id', 'id')->field('id, nickname'); } public function streetGoods() { return $this->hasMany(LocalStoreGoods::class, 'lstore_id', 'lstore_id')->field('id, lstore_id, title, price')->order('id desc')->limit(10); } }