'array', 'description' => 'array' ]; protected static $logName = 'special_offer'; protected static $logOnlyDirty = true; protected static $submitEmptyLogs = false; protected static $logAttributes = [ 'name', 'description', 'link', 'image' ]; public function getName(): string { return (string) $this->name[app()->getLocale()] ?? null; } public function getDescription(): string { return (string) $this->description[app()->getLocale()] ?? null; } public function getImage(): string { if (!empty($this->image)) { if (in_array(env('FILESYSTEM_DISK'), ['s3', 'minio'])) { return Storage::url($this->image); } return (string) $this->image; } return (string) 'images/nophoto.png'; } }