-
Notifications
You must be signed in to change notification settings - Fork 0
2. Controller
Ordent Official edited this page Sep 13, 2017
·
3 revisions
You can safely extend the RamenRest Controller that located on :
Ordent\RamenRest\Controllers\RestControllerThis controller will give you all 5 basic CRUD method [GET, POST, PUT, DELETE]
use Ordent\RamenRest\Controllers\RestController;
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