added a distinct name to the route

This commit is contained in:
Martin Folkerts 2024-09-09 11:13:46 +02:00
parent 3e773b1386
commit b33bb0defa
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ public function content(): Content
'subject' => $this->mailing->subject, 'subject' => $this->mailing->subject,
'mailing' => $this->mailing, 'mailing' => $this->mailing,
'reportUrl' => route( 'reportUrl' => route(
'project.report.download', 'project.report.download_with_token',
$this->mailing->report->token $this->mailing->report->token
), ),
], ],

View file

@ -41,4 +41,4 @@
return response()->download(Storage::path($path)); return response()->download(Storage::path($path));
} }
return abort(404); return abort(404);
})->name('project.report.download'); })->name('project.report.download_with_token');