From b33bb0defae713d34d5ffbc39243f05bd6730046 Mon Sep 17 00:00:00 2001 From: Martin Folkerts Date: Mon, 9 Sep 2024 11:13:46 +0200 Subject: [PATCH] added a distinct name to the route --- laravel_app/app/Mail/ReportMailer.php | 2 +- laravel_app/routes/web.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel_app/app/Mail/ReportMailer.php b/laravel_app/app/Mail/ReportMailer.php index c7aa3da..2aba6a9 100644 --- a/laravel_app/app/Mail/ReportMailer.php +++ b/laravel_app/app/Mail/ReportMailer.php @@ -54,7 +54,7 @@ public function content(): Content 'subject' => $this->mailing->subject, 'mailing' => $this->mailing, 'reportUrl' => route( - 'project.report.download', + 'project.report.download_with_token', $this->mailing->report->token ), ], diff --git a/laravel_app/routes/web.php b/laravel_app/routes/web.php index 950211e..d26f5d0 100644 --- a/laravel_app/routes/web.php +++ b/laravel_app/routes/web.php @@ -41,4 +41,4 @@ return response()->download(Storage::path($path)); } return abort(404); -})->name('project.report.download'); +})->name('project.report.download_with_token');