generate($media, $params['update'] ?? false); app(CacheManager::class)->delete($media); unset ($media); $job->delete(); } public function failed($data, Throwable $e) { Log::error("Resizing of image failed", [ 'message' => $e->getMessage(), 'exception' => $e, 'data' => $data, ]); throw $e; } }