options['fileNumLimit'] = $limit; return $this; } /** * Prepare for saving. * * @param string|array $file * @return array */ public function prepareToSave($file) { if ($path = request(static::FILE_DELETE_FLAG)) { $this->deleteFile($path); return array_diff($this->original, [$path]); } $file = Helper::array($file, true); $this->destroyIfChanged($file); return $file; } protected function forceOptions() { } }