From d5cade320bd51b0894760f543087cb20c18a74a5 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 17 Jan 2023 12:40:40 +0100 Subject: [PATCH] Update web.php --- routes/web.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index ad8b622bdf..b86573620d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -21,7 +21,9 @@ declare(strict_types=1); -const DATEFORMAT = '(19|20)[0-9]{2}-[0-9]{2}-[0-9]{2}'; +if(!defined('DATEFORMAT')) { + const DATEFORMAT = '(19|20)[0-9]{2}-[0-9]{2}-[0-9]{2}'; +} Route::group( ['namespace' => 'FireflyIII\Http\Controllers\System',