From 7f271c0d728f10c60f5cade93892c90ad9139478 Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Tue, 26 Sep 2017 23:29:29 +0200 Subject: [PATCH] remove the leading slash while resolving the controller --- src/Illuminate/Routing/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Routing/Route.php b/src/Illuminate/Routing/Route.php index d41ada2502ba..7725fc75ae47 100755 --- a/src/Illuminate/Routing/Route.php +++ b/src/Illuminate/Routing/Route.php @@ -223,7 +223,7 @@ public function getController() if (! $this->controller) { $class = $this->parseControllerCallback()[0]; - $this->controller = $this->container->make($class); + $this->controller = $this->container->make(ltrim($class, '\\')); } return $this->controller;