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');