3 namespace BookStack\Providers;
5 use Illuminate\Routing\Router;
6 use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
8 class RouteServiceProvider extends ServiceProvider
11 * This namespace is applied to the controller routes in your routes file.
13 * In addition, it is set as the URL generator's root namespace.
17 protected $namespace = 'BookStack\Http\Controllers';
20 * Define your route model bindings, pattern filters, etc.
22 * @param \Illuminate\Routing\Router $router
25 public function boot(Router $router)
29 parent::boot($router);
33 * Define the routes for the application.
35 * @param \Illuminate\Routing\Router $router
38 public function map(Router $router)
40 $router->group(['namespace' => $this->namespace], function ($router) {
41 require app_path('Http/routes.php');