hasMany(SellerPackageTranslation::class)->where('lang', $lang)->first(); return $seller_package_translation != null ? $seller_package_translation->$field : $this->$field; } public function seller_package_translations(){ return $this->hasMany(SellerPackageTranslation::class); } public function seller_package_payments() { return $this->hasMany(SelllerPackagePayment::class); } }