@@ -39,33 +39,33 @@ |
||
| 39 | 39 | ], |
| 40 | 40 | ]; |
| 41 | 41 | |
| 42 | - /** |
|
| 43 | - * Returns a page and associated detail and template data |
|
| 44 | - * |
|
| 45 | - * @param string $slug |
|
| 46 | - * @return \Illuminate\Http\JsonResponse |
|
| 47 | - */ |
|
| 48 | - public function showBySlug($slug) |
|
| 49 | - { |
|
| 50 | - return $this->showWithDetail(['url' => $slug]); |
|
| 51 | - } |
|
| 42 | + /** |
|
| 43 | + * Returns a page and associated detail and template data |
|
| 44 | + * |
|
| 45 | + * @param string $slug |
|
| 46 | + * @return \Illuminate\Http\JsonResponse |
|
| 47 | + */ |
|
| 48 | + public function showBySlug($slug) |
|
| 49 | + { |
|
| 50 | + return $this->showWithDetail(['url' => $slug]); |
|
| 51 | + } |
|
| 52 | 52 | |
| 53 | - /** |
|
| 54 | - * Returns a page and associated detail and template data |
|
| 55 | - * |
|
| 56 | - * @param mixed $id |
|
| 57 | - * @return \Illuminate\Http\JsonResponse |
|
| 58 | - */ |
|
| 59 | - public function showWithDetail($id) |
|
| 60 | - { |
|
| 61 | - $this->manager->parseIncludes([ |
|
| 62 | - 'parent', |
|
| 63 | - 'detail', |
|
| 64 | - 'detail.template_detail', |
|
| 65 | - //'detail.template_detail.parent', |
|
| 66 | - ]); |
|
| 53 | + /** |
|
| 54 | + * Returns a page and associated detail and template data |
|
| 55 | + * |
|
| 56 | + * @param mixed $id |
|
| 57 | + * @return \Illuminate\Http\JsonResponse |
|
| 58 | + */ |
|
| 59 | + public function showWithDetail($id) |
|
| 60 | + { |
|
| 61 | + $this->manager->parseIncludes([ |
|
| 62 | + 'parent', |
|
| 63 | + 'detail', |
|
| 64 | + 'detail.template_detail', |
|
| 65 | + //'detail.template_detail.parent', |
|
| 66 | + ]); |
|
| 67 | 67 | |
| 68 | - return $this->show($id); |
|
| 69 | - } |
|
| 68 | + return $this->show($id); |
|
| 69 | + } |
|
| 70 | 70 | |
| 71 | 71 | } |
| 72 | 72 | \ No newline at end of file |