芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/lavishbdlifestyle.com/app/Models/City.php
hasMany(CityTranslation::class)->where('lang', $lang)->first(); return $city_translation != null ? $city_translation->$field : $this->$field; } public function city_translations(){ return $this->hasMany(CityTranslation::class); } public function country() { return $this->belongsTo(Country::class); } public function state() { return $this->belongsTo(State::class); } }