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());
    }
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());
    }
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 ( ) ) ; }
set the module config

@param $category
@param string $model
@param string $uploadType
@return void
set the module config