diff --git a/src/Producto.php b/src/Producto.php index 4e1d962..283759d 100644 --- a/src/Producto.php +++ b/src/Producto.php @@ -105,7 +105,7 @@ class Producto extends Model { $this->imagen = 'default.jpg'; $img = $this->imagenes(); if (count($img) > 0) { - $this->imagen = $img[0]; + $this->imagen = implode('/', [mb_strtolower($this->nombre), $img[0]]); } } return $this->imagen;