File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?php namespace App \Providers ;
2
2
3
3
use Illuminate \Routing \Router ;
4
+ use Illuminate \Contracts \Routing \UrlGenerator ;
4
5
use Illuminate \Foundation \Support \Providers \RouteServiceProvider as ServiceProvider ;
5
6
6
7
class RouteServiceProvider extends ServiceProvider {
@@ -22,11 +23,12 @@ class RouteServiceProvider extends ServiceProvider {
22
23
* Register any model bindings or pattern based filters.
23
24
*
24
25
* @param \Illuminate\Routing\Router $router
26
+ * @param \Illuminate\Contracts\Routing\UrlGenerator $url
25
27
* @return void
26
28
*/
27
- public function before (Router $ router )
29
+ public function before (Router $ router, UrlGenerator $ url )
28
30
{
29
- //
31
+ $ url -> setRootControllerNamespace ( ' App\Http\Controllers ' );
30
32
}
31
33
32
34
/**
You can’t perform that action at this time.
0 commit comments