From 00325bc09453a9fa79d45a41fe7fcb8c0ba09836 Mon Sep 17 00:00:00 2001 From: Babibubebon Date: Mon, 20 Jan 2020 01:07:11 +0900 Subject: [PATCH] fix error in routing when running artisan --- routes/web.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index a8ae9bc..dbd4253 100644 --- a/routes/web.php +++ b/routes/web.php @@ -10,7 +10,9 @@ | and give it the Closure to call when that URI is requested. | */ - +if ($_SERVER['PHP_SELF'] === 'artisan') { + return; +} function joinHostPort($components) {