pacoorozco / ssham

SSH Access Manager
https://ssham.pacoorozco.info
GNU General Public License v3.0
47 stars 3 forks source link

Call a route with string instead of array on UserController.php #3

Closed pacoorozco closed 9 years ago

pacoorozco commented 9 years ago

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

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