diff --git a/src/Illuminate/View/FileViewFinder.php b/src/Illuminate/View/FileViewFinder.php index 1c976b30679a..c2c1bb326e3a 100755 --- a/src/Illuminate/View/FileViewFinder.php +++ b/src/Illuminate/View/FileViewFinder.php @@ -160,6 +160,16 @@ public function addLocation($location) { $this->paths[] = $location; } + /** + * Prepend a location to the finder. + * + * @param string $location + * @return void + */ + public function prependLocation($location) + { + array_unshift($this->paths, $location); + } /** * Add a namespace hint to the finder.