diff --git a/app/Models/Librilladora.php b/app/Models/Librilladora.php index fbbb374..d42900a 100644 --- a/app/Models/Librilladora.php +++ b/app/Models/Librilladora.php @@ -46,6 +46,11 @@ class Librilladora extends Model { for ($i = 0; $i < $cantBooklets; $i++) array_push($fileNames, 'uploads/librillo-'.$i."-".$fileName); $this->mergePDFFiles($fileNames); + File::delete($file); + for ($i = 0; $i < count($fileNames); $i++) { + File::delete('uploads/librillo-'.$i."-".$fileName); + File::delete('uploads/'.$i."-".$fileName); + } } diff --git a/public/uploads/0-1638146076.pdf b/public/uploads/0-1638146076.pdf deleted file mode 100644 index 6b54e78..0000000 Binary files a/public/uploads/0-1638146076.pdf and /dev/null differ diff --git a/public/uploads/1-1638146076.pdf b/public/uploads/1-1638146076.pdf deleted file mode 100644 index 056e158..0000000 Binary files a/public/uploads/1-1638146076.pdf and /dev/null differ diff --git a/public/uploads/1638146076.pdf b/public/uploads/1638146076.pdf deleted file mode 100644 index d23dc05..0000000 Binary files a/public/uploads/1638146076.pdf and /dev/null differ diff --git a/public/uploads/2-1638146076.pdf b/public/uploads/2-1638146076.pdf deleted file mode 100644 index a5f9ece..0000000 Binary files a/public/uploads/2-1638146076.pdf and /dev/null differ diff --git a/public/uploads/3-1638146076.pdf b/public/uploads/3-1638146076.pdf deleted file mode 100644 index 160f081..0000000 Binary files a/public/uploads/3-1638146076.pdf and /dev/null differ diff --git a/public/uploads/4-1638146076.pdf b/public/uploads/4-1638146076.pdf deleted file mode 100644 index 7e6c4fd..0000000 Binary files a/public/uploads/4-1638146076.pdf and /dev/null differ diff --git a/public/uploads/librillo-0-1638146076.pdf b/public/uploads/librillo-0-1638146076.pdf deleted file mode 100644 index b5f0128..0000000 Binary files a/public/uploads/librillo-0-1638146076.pdf and /dev/null differ diff --git a/public/uploads/librillo-1-1638146076.pdf b/public/uploads/librillo-1-1638146076.pdf deleted file mode 100644 index 94d803a..0000000 Binary files a/public/uploads/librillo-1-1638146076.pdf and /dev/null differ diff --git a/public/uploads/librillo-2-1638146076.pdf b/public/uploads/librillo-2-1638146076.pdf deleted file mode 100644 index 1adc9f1..0000000 Binary files a/public/uploads/librillo-2-1638146076.pdf and /dev/null differ diff --git a/public/uploads/librillo-3-1638146076.pdf b/public/uploads/librillo-3-1638146076.pdf deleted file mode 100644 index c65f788..0000000 Binary files a/public/uploads/librillo-3-1638146076.pdf and /dev/null differ diff --git a/public/uploads/librillo-4-1638146076.pdf b/public/uploads/librillo-4-1638146076.pdf deleted file mode 100644 index 2ba5508..0000000 Binary files a/public/uploads/librillo-4-1638146076.pdf and /dev/null differ