From 2a0c102878c8a16be057f567996ef588052c4813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=A1=D0=BE=D1=81?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Mon, 6 Feb 2017 08:26:22 +0300 Subject: [PATCH] Ensure that the method "map" exists before calling --- .../Foundation/Support/Providers/RouteServiceProvider.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php b/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php index bc0fa8408ad6..564705a62080 100644 --- a/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php +++ b/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php @@ -66,7 +66,9 @@ protected function loadCachedRoutes() */ protected function loadRoutes() { - $this->app->call([$this, 'map']); + if (method_exists($this, 'map')) { + $this->app->call([$this, 'map']); + } } /**