| 1 | <?php |
||
| 8 | class TemplateController 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\Template\Template::class; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The name of the transformer to use for this package |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $transformerName = \App\LaravelRestCms\Template\TemplateTransformer::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 = 'templates'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Returns a page and associated detail and template data |
||
| 33 | * |
||
| 34 | * @param mixed $id |
||
| 35 | * @return \Illuminate\Http\JsonResponse |
||
| 36 | */ |
||
| 37 | public function showWithDetail($id) |
||
| 45 | |||
| 46 | } |