protected function setModuleThumbnails($category, $model, $uploadType)
    {
        $module = getModule(get_called_class());
        if (is_null($category->thumbnails)) {
            return;
        }
        Config::set("{$module}.{$model}.uploads.{$uploadType}.thumbnails",$category->thumbnails->map(function($item)
        {
            return [
                'width' => $item->photo_width,
                'height'=> $item->photo_height,
                'slug'  => $item->slug
            ];
        })->keyBy('slug')->toArray());
    }