From 601a031443e838f3d139e6fd5d30c0740236403c Mon Sep 17 00:00:00 2001 From: Andy Wendt Date: Mon, 24 Aug 2015 11:59:59 -0600 Subject: [PATCH] updated controller docs --- documentation/controllers.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/documentation/controllers.md b/documentation/controllers.md index 7df7711..dee264f 100644 --- a/documentation/controllers.md +++ b/documentation/controllers.md @@ -2,6 +2,8 @@ Extending `\LaraPackage\Api\Http\Controllers\AbstractRestController` provides GET, POST, PUT, PATCH, DELETE routes out of the box. +You need to use the repository and transformer for the controller. + Example usage: ```php @@ -11,7 +13,7 @@ use App\v1\Transformer; use LaraPackage\Api\CollectionHelper; use LaraPackage\Api\Http\Controllers\AbstractRestController; -class AttributekeysController extends AbstractRestController +class YourController extends AbstractRestController { /**