From 27dd1327d906eadd7a16837814c30fd42497dd27 Mon Sep 17 00:00:00 2001 From: AlexJoom Date: Fri, 7 Jul 2023 16:52:31 +0300 Subject: [PATCH] change download url --- app/Http/Controllers/PurchasedNetAppController.php | 2 +- resources/views/purchased-netapps.blade.php | 2 +- routes/web.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/PurchasedNetAppController.php b/app/Http/Controllers/PurchasedNetAppController.php index 3376421..6eef072 100644 --- a/app/Http/Controllers/PurchasedNetAppController.php +++ b/app/Http/Controllers/PurchasedNetAppController.php @@ -59,7 +59,7 @@ public function myPurchasedNetApps() { return view('purchased-netapps', compact('purchasedNetApps')); } - public function download(Request $request): \Symfony\Component\HttpFoundation\StreamedResponse + public function downloadDockerImages(Request $request): \Symfony\Component\HttpFoundation\StreamedResponse { $netappId = $request->query->get("id"); $netapp = Netapp::where('id', $netappId)->first(); diff --git a/resources/views/purchased-netapps.blade.php b/resources/views/purchased-netapps.blade.php index f780e2f..5203bdc 100644 --- a/resources/views/purchased-netapps.blade.php +++ b/resources/views/purchased-netapps.blade.php @@ -57,7 +57,7 @@ @endif - netapp->id }}" > + netapp->id }}" > Download diff --git a/routes/web.php b/routes/web.php index 6384e90..16229d6 100644 --- a/routes/web.php +++ b/routes/web.php @@ -75,7 +75,7 @@ Route::get('/saved-netapp', [SaveNetappController::class, 'index'])->name('saved-netapp'); Route::get('/revenue-page/{id}', [PurchasedNetAppController::class, 'showRevenue'])->name('revenue-page'); Route::get('/netapps/purchased', [PurchasedNetAppController::class, 'myPurchasedNetApps'])->name('my-purchased-netapps'); - Route::get('/netapps/purchased/download', [PurchasedNetAppController::class, 'download'])->name('my-purchased-netapps-download'); + Route::get('/netapps/download-zip-file', [PurchasedNetAppController::class, 'downloadDockerImages'])->name('my-purchased-netapps-download'); Route::view('/support', 'support')->name('support'); Route::get('/create-netapp', [NetappController::class, 'index'])->name('create-netapp'); Route::get('/edit-netapp/{id}', [NetappController::class, 'edit'])->name('edit-netapp');