-
Notifications
You must be signed in to change notification settings - Fork 0
2. Controller
Ordent Official edited this page Jul 29, 2017
·
3 revisions
You can safely extend the RamenRest Controller that located on :
Ordent\RamenRest\Controllers\RestController
This controller will give you all 5 basic CRUD method [GET, POST, PUT, DELETE]
class UserController extends RestController{
protected $model = "\App\User";
protected $uri = "/users/";
}
Or you can also use the available trait for RamenRestController that located on :
Ordent\RamenRest\Controllers\RestControllerTrait