role_translations->where('lang', $lang)->first(); return $role_translation != null ? $role_translation->$field : $this->$field; } public function role_translations(){ return $this->hasMany(RoleTranslation::class); } }