@@ -87,11 +87,11 @@ |
||
| 87 | 87 | return $this->belongsTo(Group::class, 'namespace_id', 'id'); |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - /** |
|
| 91 | - * Projects can belong to a namespace. |
|
| 92 | - * |
|
| 93 | - * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
|
| 94 | - */ |
|
| 90 | + /** |
|
| 91 | + * Projects can belong to a namespace. |
|
| 92 | + * |
|
| 93 | + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
|
| 94 | + */ |
|
| 95 | 95 | public function projectNamespace() |
| 96 | 96 | { |
| 97 | 97 | return $this->belongsTo(ProjectNamespace::class, 'namespace_id', 'id'); |
@@ -52,12 +52,12 @@ |
||
| 52 | 52 | 'setting' => 'app_name', |
| 53 | 53 | 'as' => 'groups.', |
| 54 | 54 | ], function ($router) { |
| 55 | - $router->get('{namespace}', [ |
|
| 55 | + $router->get('{namespace}', [ |
|
| 56 | 56 | 'as' => 'group_show', |
| 57 | 57 | 'uses' => 'GroupsController@show', |
| 58 | 58 | ])->where('namespace', '[a-zA-z.0-9_\-]+'); |
| 59 | 59 | |
| 60 | - $router->get('{namespace}/edit', [ |
|
| 60 | + $router->get('{namespace}/edit', [ |
|
| 61 | 61 | 'as' => 'group_edit', |
| 62 | 62 | 'uses' => 'GroupsController@edit', |
| 63 | 63 | ])->where('namespace', '[a-zA-z.0-9_\-]+'); |
@@ -55,12 +55,12 @@ |
||
| 55 | 55 | 'setting' => 'app_name', |
| 56 | 56 | 'as' => 'projects.', |
| 57 | 57 | ], function ($router) { |
| 58 | - $router->get('{namespace}/{project}', [ |
|
| 58 | + $router->get('{namespace}/{project}', [ |
|
| 59 | 59 | 'as' => 'project_show', |
| 60 | 60 | 'uses' => 'ProjectsController@show', |
| 61 | 61 | ])->where('namespace', '[a-zA-z.0-9_\-]+')->where('project', '[a-zA-z.0-9_\-]+'); |
| 62 | 62 | |
| 63 | - $router->get('{namespace}/{project}/edit', [ |
|
| 63 | + $router->get('{namespace}/{project}/edit', [ |
|
| 64 | 64 | 'as' => 'project_edit', |
| 65 | 65 | 'uses' => 'ProjectsController@edit', |
| 66 | 66 | ])->where('namespace', '[a-zA-z.0-9_\-]+')->where('project', '[a-zA-z.0-9_\-]+'); |