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();
    }
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();
    }
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 ( ) ; }
Builds the validation rules for the product pictures.

@return array
Builds the validation rules for the product pictures .