original_string: public function setPicturesAttribute(array $attr)
      {
          $current = $this->image;
          $image = Images::parse($attr)->on($this->storageFolder());
  
          if ($image->wantsDeletion()) {
              $image->delete($current);
              return $this->attributes['image'] = null;
          }
  
          $picture = $image->update($current);
  
          return $this->attributes['image'] = $picture['path'];
      }
code: public function setPicturesAttribute(array $attr)
      {
          $current = $this->image;
          $image = Images::parse($attr)->on($this->storageFolder());
  
          if ($image->wantsDeletion()) {
              $image->delete($current);
              return $this->attributes['image'] = null;
          }
  
          $picture = $image->update($current);
  
          return $this->attributes['image'] = $picture['path'];
      }
code_tokens: public function setPicturesAttribute ( array $ attr ) { $ current = $ this -> image ; $ image = Images :: parse ( $ attr ) -> on ( $ this -> storageFolder ( ) ) ; if ( $ image -> wantsDeletion ( ) ) { $ image -> delete ( $ current ) ; return $ this -> attributes [ 'image' ] = null ; } $ picture = $ image -> update ( $ current ) ; return $ this -> attributes [ 'image' ] = $ picture [ 'path' ] ; }
docstring: Set the image value of a given model.
  
  @param  array  $attr
  
  @return null|String
docstring_tokens: Set the image value of a given model .