Set the root controller namespace.

This commit is contained in:
Taylor Otwell 2014-11-11 20:10:53 -06:00
parent ca2f02284c
commit e3e7cc499f
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
<?php namespace App\Providers;
use Illuminate\Routing\Router;
use Illuminate\Contracts\Routing\UrlGenerator;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider {
@ -22,11 +23,12 @@ class RouteServiceProvider extends ServiceProvider {
* Register any model bindings or pattern based filters.
*
* @param \Illuminate\Routing\Router $router
* @param \Illuminate\Contracts\Routing\UrlGenerator $url
* @return void
*/
public function before(Router $router)
public function before(Router $router, UrlGenerator $url)
{
//
$url->setRootControllerNamespace('App\Http\Controllers');
}
/**