@@ -84,16 +84,16 @@ |
||
| 84 | 84 | return $this->hasMany(Project::class, 'owner_id', 'id'); |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - /** |
|
| 88 | - * Find project under this owner by path, or throw an exception. |
|
| 89 | - * |
|
| 90 | - * @param string $path |
|
| 91 | - * @param string[] $columns |
|
| 92 | - * |
|
| 93 | - * @throws \Illuminate\Database\Eloquent\ModelNotFoundException |
|
| 94 | - * |
|
| 95 | - * @return \Gitamin\Models\User |
|
| 96 | - */ |
|
| 87 | + /** |
|
| 88 | + * Find project under this owner by path, or throw an exception. |
|
| 89 | + * |
|
| 90 | + * @param string $path |
|
| 91 | + * @param string[] $columns |
|
| 92 | + * |
|
| 93 | + * @throws \Illuminate\Database\Eloquent\ModelNotFoundException |
|
| 94 | + * |
|
| 95 | + * @return \Gitamin\Models\User |
|
| 96 | + */ |
|
| 97 | 97 | public function project($path, $columns = ['*']) |
| 98 | 98 | { |
| 99 | 99 | $project = Project::where('owner_id', '=', $this->id)->where('path', '=', $path)->first($columns); |