Closed pacoorozco closed 9 years ago
Reading Laravel 5 route helper documentation:
If the route accepts parameters, you may pass them as the second argument to the method: $url = route('routeName', ['id' => 1]);
So I modified to:
flash()->overlay(trans('user/messages.edit.success_private', array('url' => link_to(route('file.download', ['filename' => $private_key]), 'this link'))));
see https://scrutinizer-ci.com/g/pacoorozco/ssham/inspections/95104bf6-e276-434a-9503-a1b272848502/issues/files/app/Http/Controllers/UserController.php?status=new&orderField=path&order=asc#inspectioncomment-1163581025