disks() as $disk) { /** @var FilesystemAdapter $fs */ $fs = Storage::disk($disk); $result = $fs->delete($this->path()); $results[$disk] = $result; } return new DeleteResults($this->model, $results); } /** * Processes to be completed after handling action. * * @param StorageResults $storageResults * @return TModel */ public function then(StorageResults $storageResults): BaseModel { $this->model->delete(); return $this->model; } /** * Get the path to delete. * * @return string */ abstract protected function path(): string; }