src/Traits/EloquentImageSaverTrait.php
public function saveImages( Array $images, $path, $name = null, Array $sizes = [], $callback = null )
    {
        $array = [];

        foreach( $images as $file )
        {
            $array[] = $this->saveImage( $file, $path );
        }

        // CallBack
        if( is_callable( $callback ) )
            call_user_func( $callback, $this, $array );

        return $array;

    }
public function saveImages( Array $images, $path, $name = null, Array $sizes = [], $callback = null )
    {
        $array = [];

        foreach( $images as $file )
        {
            $array[] = $this->saveImage( $file, $path );
        }

        // CallBack
        if( is_callable( $callback ) )
            call_user_func( $callback, $this, $array );

        return $array;

    }
public function saveImages ( Array $ images , $ path , $ name = null , Array $ sizes = [ ] , $ callback = null ) { $ array = [ ] ; foreach ( $ images as $ file ) { $ array [ ] = $ this -> saveImage ( $ file , $ path ) ; } // CallBack if ( is_callable ( $ callback ) ) call_user_func ( $ callback , $ this , $ array ) ; return $ array ; }
Save Array Of Uploaded Files Image
@param  Array                         $images    Array of  \Illuminate\Http\UploadedFile
@param  String                        $path      Path where to save Image
@param  String                        $name      Image Save Name
@param  Array|array                   $sizes     Array of image sizes
@param  Function                      $callback  Callback to run after saving image
@return Array                                    Array of Images saved names
Save Array Of Uploaded Files Image