Пример #1
0
 protected function uploadFiles($files)
 {
     CleanCodeFile::prepareMultiple($files, function ($name, $tmpName, $type, $size) {
         static::saveFile($name, $tmpName, $type, $size);
     });
 }
Пример #2
0
 public function delete()
 {
     return count($this->thumbs) ? $this->deleteThumbs() : parent::delete();
 }