@@ 19-51 (lines=33) @@ | ||
16 | /** |
|
17 | * This is the groups routes class. |
|
18 | */ |
|
19 | class GroupsRoutes |
|
20 | { |
|
21 | /** |
|
22 | * Define the groups routes. |
|
23 | * |
|
24 | * @param \Illuminate\Contracts\Routing\Registrar $router |
|
25 | */ |
|
26 | public function map(Registrar $router) |
|
27 | { |
|
28 | $router->group([ |
|
29 | 'middleware' => ['app.hasSetting'], |
|
30 | 'setting' => 'app_name', |
|
31 | 'prefix' => 'groups', |
|
32 | 'as' => 'groups.', |
|
33 | ], function ($router) { |
|
34 | $router->get('/', [ |
|
35 | 'as' => 'index', |
|
36 | 'uses' => 'GroupsController@index', |
|
37 | ]); |
|
38 | $router->get('new', [ |
|
39 | 'as' => 'new', |
|
40 | 'uses' => 'GroupsController@new', |
|
41 | ]); |
|
42 | ||
43 | $router->post('create', [ |
|
44 | 'as' => 'create', |
|
45 | 'uses' => 'GroupsController@create', |
|
46 | ]); |
|
47 | ||
48 | ||
49 | }); |
|
50 | } |
|
51 | } |
|
52 |
@@ 19-51 (lines=33) @@ | ||
16 | /** |
|
17 | * This is the projects routes class. |
|
18 | */ |
|
19 | class ProjectsRoutes |
|
20 | { |
|
21 | /** |
|
22 | * Define the projects routes. |
|
23 | * |
|
24 | * @param \Illuminate\Contracts\Routing\Registrar $router |
|
25 | */ |
|
26 | public function map(Registrar $router) |
|
27 | { |
|
28 | $router->group([ |
|
29 | 'middleware' => ['app.hasSetting'], |
|
30 | 'setting' => 'app_name', |
|
31 | 'prefix' => 'projects', |
|
32 | 'as' => 'projects.', |
|
33 | ], function ($router) { |
|
34 | $router->get('/', [ |
|
35 | 'as' => 'index', |
|
36 | 'uses' => 'ProjectsController@index', |
|
37 | ]); |
|
38 | $router->get('new', [ |
|
39 | 'as' => 'new', |
|
40 | 'uses' => 'ProjectsController@new', |
|
41 | ]); |
|
42 | ||
43 | $router->post('create', [ |
|
44 | 'as' => 'create', |
|
45 | 'uses' => 'ProjectsController@create', |
|
46 | ]); |
|
47 | ||
48 | ||
49 | }); |
|
50 | } |
|
51 | } |
|
52 |