| 1 | <?php |
||
| 8 | class PageController extends ApiController |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The name of the model to use for this package |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $modelName = \App\LaravelRestCms\Page\Page::class; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The name of the transformer to use for this package |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $transformerName = \App\LaravelRestCms\Page\PageTransformer::class; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The key to use as a key for this collection in the output |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $collectionName = 'pages'; |
||
| 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) |
||
| 46 | |||
| 47 | } |