Browse Source

Set root controller namespace.

Taylor Otwell 10 years ago
parent
commit
a7f3512743
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/Providers/RouteServiceProvider.php

+ 3 - 1
app/Providers/RouteServiceProvider.php

@@ -14,7 +14,9 @@ class RouteServiceProvider extends ServiceProvider {
 	 */
 	public function before()
 	{
-		//
+		URL::setRootControllerNamespace(
+			trim(config('namespaces.controller'), '\\')
+		);
 	}
 
 	/**