From afa5813ccdbe9ebbfedc1e5db833f5d908d915f3 Mon Sep 17 00:00:00 2001 From: xcaptain Date: Sun, 2 Oct 2016 15:43:29 +0800 Subject: [PATCH] fix Call to undefined method resourcePath() lumen 5.3 app doesn't comes with `resourcePath` method, use `basePath` instead --- src/Illuminate/Support/ServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Support/ServiceProvider.php b/src/Illuminate/Support/ServiceProvider.php index 0403afb90491..1085ac0c0ec0 100755 --- a/src/Illuminate/Support/ServiceProvider.php +++ b/src/Illuminate/Support/ServiceProvider.php @@ -68,7 +68,7 @@ protected function mergeConfigFrom($path, $key) */ protected function loadViewsFrom($path, $namespace) { - if (is_dir($appPath = $this->app->resourcePath().'/views/vendor/'.$namespace)) { + if (is_dir($appPath = $this->app->basePath().'/resources/views/vendor/'.$namespace)) { $this->app['view']->addNamespace($namespace, $appPath); }