From e64bac2530bfd371939d932d6802f763b6934f94 Mon Sep 17 00:00:00 2001 From: Sinevia Date: Sun, 20 May 2018 12:45:44 +0100 Subject: [PATCH] Update CmsController.php --- src/Http/Controllers/CmsController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Http/Controllers/CmsController.php b/src/Http/Controllers/CmsController.php index fcb3337..b7e1eff 100644 --- a/src/Http/Controllers/CmsController.php +++ b/src/Http/Controllers/CmsController.php @@ -43,7 +43,8 @@ function anyPageView($slug = "") { ':all' => '(.*)', ':string' => '([a-zA-Z]+)', ':number' => '([0-9]+)', - ':alpha' => '([a-zA-Z0-9-_]+)' + ':alpha' => '([a-zA-Z0-9-_]+)', + ':numeric'=>'([^0-9-.]+)', ); $aliases = \Sinevia\Cms\Models\Page::pluck('Alias', 'Id')->toArray(); $aliases = array_filter($aliases, function($alias) {