original_string: protected function forPictures() : array
      {
          $pictures = Collection::make($this->all())->filter(function($item, $key) {
              return $key == 'pictures';
          })->get('pictures');
  
          if (is_null($pictures) || empty($pictures['storing'])) {
              return [];
          }
  
          return Collection::make($pictures['storing'])->mapWithKeys(function($item, $key) {
              return ['pictures.storing.' . $key => [
                  'mimes:jpeg,png,jpg',
                  Rule::dimensions()->maxWidth(1000)->maxHeight(500)
              ]];
          })->all();
      }
code: protected function forPictures() : array
      {
          $pictures = Collection::make($this->all())->filter(function($item, $key) {
              return $key == 'pictures';
          })->get('pictures');
  
          if (is_null($pictures) || empty($pictures['storing'])) {
              return [];
          }
  
          return Collection::make($pictures['storing'])->mapWithKeys(function($item, $key) {
              return ['pictures.storing.' . $key => [
                  'mimes:jpeg,png,jpg',
                  Rule::dimensions()->maxWidth(1000)->maxHeight(500)
              ]];
          })->all();
      }
code_tokens: protected function forPictures ( ) : array { $ pictures = Collection :: make ( $ this -> all ( ) ) -> filter ( function ( $ item , $ key ) { return $ key == 'pictures' ; } ) -> get ( 'pictures' ) ; if ( is_null ( $ pictures ) || empty ( $ pictures [ 'storing' ] ) ) { return [ ] ; } return Collection :: make ( $ pictures [ 'storing' ] ) -> mapWithKeys ( function ( $ item , $ key ) { return [ 'pictures.storing.' . $ key => [ 'mimes:jpeg,png,jpg' , Rule :: dimensions ( ) -> maxWidth ( 1000 ) -> maxHeight ( 500 ) ] ] ; } ) -> all ( ) ; }
docstring: Builds the validation rules for the product pictures.
  
  @return array
docstring_tokens: Builds the validation rules for the product pictures .