diff --git a/src/Producto.php b/src/Producto.php index 69da489..3a038bc 100644 --- a/src/Producto.php +++ b/src/Producto.php @@ -87,9 +87,9 @@ class Producto extends Model { if ($file->isDir()) { continue; } - $producto->imagenes []= $file->getFilename(); + $this->imagenes []= $file->getFilename(); } - sort($producto->imagenes); + sort($this->imagenes); } } return $this->imagenes;