Set the root controller namespace.
This commit is contained in:
parent
ca2f02284c
commit
e3e7cc499f
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue