Modifs chemin path en md5.

This commit is contained in:
2017-10-27 13:19:11 +02:00
parent ecdf6c4976
commit 6f11372668

View File

@@ -83,7 +83,7 @@ class Image extends Model
if (empty($basePath)) {
throw new \Exception('You must defined config image.path');
}
$parts = array_slice(str_split(mb_strtolower(str_slug($filename, '')), 2), 0, 2);
$parts = array_slice(str_split(md5($filename), 2), 0, 2);
$path = $basePath . '/' . implode('/', $parts) . '/' . $filename;
return $path;