protected function createPicturesFor($product, $attr)
    {
        $pictures = Images::parse($attr->get('pictures'))
            ->on($this->basePath. '/' . $product->id)
            ->store();

        $product->pictures()->createMany($pictures);
    }
protected function createPicturesFor($product, $attr)
    {
        $pictures = Images::parse($attr->get('pictures'))
            ->on($this->basePath. '/' . $product->id)
            ->store();

        $product->pictures()->createMany($pictures);
    }
protected function createPicturesFor ( $ product , $ attr ) { $ pictures = Images :: parse ( $ attr -> get ( 'pictures' ) ) -> on ( $ this -> basePath . '/' . $ product -> id ) -> store ( ) ; $ product -> pictures ( ) -> createMany ( $ pictures ) ; }
Creates pictures for the given product.

@param  \Antvel\Product\Models\Product $product
@param  array $attr

@return void
Creates pictures for the given product .