@@ -30,7 +30,7 @@ |
||
| 30 | 30 | die( |
| 31 | 31 | "File: " . $e->getFile() . |
| 32 | 32 | "\nLine: " . $e->getLine() . |
| 33 | - "\nMessage: " . $e->getMessage() . |
|
| 33 | + "\nMessage: " . $e->getMessage() . |
|
| 34 | 34 | "\n\nTrace:\n" . substr($e->getTraceAsString(), 0, 5000) |
| 35 | 35 | ); |
| 36 | 36 | } |
@@ -28,20 +28,20 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | protected $collectionName = 'pages'; |
| 30 | 30 | |
| 31 | - /** |
|
| 32 | - * Returns a page and associated detail and template data |
|
| 33 | - * |
|
| 34 | - * @param int $id |
|
| 35 | - * @return \Illuminate\Http\JsonResponse |
|
| 36 | - */ |
|
| 37 | - public function showWithDetail($id) |
|
| 38 | - { |
|
| 39 | - $this->manager->parseIncludes([ |
|
| 40 | - 'detail', |
|
| 41 | - 'detail.template_detail', |
|
| 42 | - ]); |
|
| 31 | + /** |
|
| 32 | + * Returns a page and associated detail and template data |
|
| 33 | + * |
|
| 34 | + * @param int $id |
|
| 35 | + * @return \Illuminate\Http\JsonResponse |
|
| 36 | + */ |
|
| 37 | + public function showWithDetail($id) |
|
| 38 | + { |
|
| 39 | + $this->manager->parseIncludes([ |
|
| 40 | + 'detail', |
|
| 41 | + 'detail.template_detail', |
|
| 42 | + ]); |
|
| 43 | 43 | |
| 44 | - return $this->show($id); |
|
| 45 | - } |
|
| 44 | + return $this->show($id); |
|
| 45 | + } |
|
| 46 | 46 | |
| 47 | 47 | } |
| 48 | 48 | \ No newline at end of file |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | /** |
| 32 | 32 | * Rules to validate when creating a model |
| 33 | 33 | * |
| 34 | - * @var array |
|
| 34 | + * @var array |
|
| 35 | 35 | */ |
| 36 | 36 | protected static $createRules = [ |
| 37 | 37 | 'page_id' => 'integer', |
@@ -45,8 +45,8 @@ discard block |
||
| 45 | 45 | * @return \Illuminate\Database\Eloquent\Relations\HasOne |
| 46 | 46 | */ |
| 47 | 47 | public function templateDetail() |
| 48 | - { |
|
| 49 | - return $this->hasMany(TemplateDetail::class, 'id', 'template_detail_id'); |
|
| 50 | - } |
|
| 48 | + { |
|
| 49 | + return $this->hasMany(TemplateDetail::class, 'id', 'template_detail_id'); |
|
| 50 | + } |
|
| 51 | 51 | |
| 52 | 52 | } |