1 | <?php |
||
8 | class RouteServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * This namespace is applied to the controller routes in your routes file. |
||
12 | * |
||
13 | * In addition, it is set as the URL generator's root namespace. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $namespace = '\LaravelFlare\Flare\Http\Controllers'; |
||
18 | |||
19 | /** |
||
20 | * Define your route model bindings, pattern filters, etc. |
||
21 | * |
||
22 | * @param \Illuminate\Routing\Router $router |
||
23 | */ |
||
24 | public function boot(Router $router) |
||
30 | |||
31 | /** |
||
32 | * Define the routes for the application. |
||
33 | * |
||
34 | * @param \Illuminate\Routing\Router $router |
||
35 | */ |
||
36 | public function map(Router $router) |
||
42 | |||
43 | /** |
||
44 | * Register all the Flare Provided Middleware and Middleware Groups. |
||
45 | * |
||
46 | * We define flarebase rather than extend an existing middleware stack |
||
47 | * since it is possible that a user has amended the default middleware |
||
48 | * of their application in a way that could break Flare. |
||
49 | * |
||
50 | * @param Router $router |
||
51 | * |
||
52 | * @return void |
||
53 | */ |
||
54 | protected function registerMiddleware(Router $router) |
||
74 | |||
75 | /** |
||
76 | * Register the Defined Routes. |
||
77 | * |
||
78 | * This registers all the routes which have been defined by |
||
79 | * Admin sections defined in the Application's Flare Config |
||
80 | * (or in the runtime config if anotehr service provider |
||
81 | * has already started manipulating these dynamically). |
||
82 | * |
||
83 | * @param Router $router |
||
84 | * |
||
85 | * @return void |
||
86 | */ |
||
87 | protected function registerDefinedRoutes(Router $router) |
||
101 | |||
102 | /** |
||
103 | * Register the Default Routes. |
||
104 | * |
||
105 | * This registers all the default routes which are included |
||
106 | * with Flare. These consist of things which will probably |
||
107 | * be included with every application such as the login, |
||
108 | * logout and password reset forms. |
||
109 | * |
||
110 | * The login form can however be hidden by setting the |
||
111 | * 'show' config for 'login' to false. |
||
112 | * |
||
113 | * @param Router $router |
||
114 | * |
||
115 | * @return void |
||
116 | */ |
||
117 | protected function registerDefaultRoutes(Router $router) |
||
138 | } |
||
139 |