'array', 'region_id' => 'integer' ]; protected static $logName = 'cities'; protected static $logOnlyDirty = true; protected static $logAttributes = ['name', 'region_id']; protected static $submitEmptyLogs = false; public function region() { return $this->belongsTo(Region::class, 'region_id', 'id'); } public function getName() { return (string) $this->name['ru'] ?? null; } }