Skip to content

Commit c33453e

Browse files
committed
Pull routes after booting application.
1 parent b0334fd commit c33453e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/Providers/RouteServiceProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ public function before()
2323
*/
2424
public function map()
2525
{
26-
require app_path().'/src/Http/routes.php';
26+
$this->app->booted(function()
27+
{
28+
require app('path.src').'/Http/routes.php';
29+
});
2730
}
2831

2932
}

0 commit comments

Comments
 (0)