From 0a096abbee4c244ea3e65df53ad76121cf19bf31 Mon Sep 17 00:00:00 2001 From: Nicolas Widart Date: Fri, 5 Jun 2015 19:41:58 +0200 Subject: [PATCH] Give the page uri a name to link to it. --- Http/frontendRoutes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Http/frontendRoutes.php b/Http/frontendRoutes.php index 0196974..cce65f3 100644 --- a/Http/frontendRoutes.php +++ b/Http/frontendRoutes.php @@ -4,6 +4,6 @@ /** @var Router $router */ if (! App::runningInConsole()) { - $router->get('{uri}', 'PublicController@uri'); + $router->get('{uri}', ['uses' => 'PublicController@uri', 'as' => 'page']); $router->get('/', ['uses' => 'PublicController@homepage', 'as' => 'homepage']); }