public function createCollection(array $data = [])
    {
        $collection = new Images();

        foreach ($data as $item) {
            $collection->add(null, $this->create($item));
        }

        return $collection;
    }
public function createCollection(array $data = [])
    {
        $collection = new Images();

        foreach ($data as $item) {
            $collection->add(null, $this->create($item));
        }

        return $collection;
    }
public function createCollection ( array $ data = [ ] ) { $ collection = new Images ( ) ; foreach ( $ data as $ item ) { $ collection -> add ( null , $ this -> create ( $ item ) ) ; } return $ collection ; }
Create generic collection

@param  array  $data
@return Images
Create generic collection