'array', 'body' => 'array', 'keywords' => 'array', 'descriptions' => 'array', ]; protected static $logName = 'pages'; protected static $logOnlyDirty = true; protected static $logAttributes = ['name', 'body']; protected static $submitEmptyLogs = false; public function getName() { return (string) $this->name[app()->getLocale()] ?? null; } public function getBody() { return (string) $this->body[app()->getLocale()] ?? null; } public function getDescriptions() { if (App::isLocale('ru')) { return $this->descriptions['ru']; } return $this->descriptions['uz']; } public function getKeywords() { if (App::isLocale('ru')) { return $this->keywords['ru']; } return $this->keywords['uz']; } }