protected function uploadFiles($files) { CleanCodeFile::prepareMultiple($files, function ($name, $tmpName, $type, $size) { static::saveFile($name, $tmpName, $type, $size); }); }
public function delete() { return count($this->thumbs) ? $this->deleteThumbs() : parent::delete(); }