Skip to content

white-frame/http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Http

Simple http Controller layout for WhiteFrame\Helloquent REST models and response helpers for browser and api response.

REST Model Controller

This controller will require a model with valid Presenter, Renderer, Transformer (for API), Repository, and a valid endpoint.

Simply extends your controller with WhiteFrame\Http\Controller\Resource\Controller.

use WhiteFrame\Http\Controller\Resource\Controller;

class UserController extends Controller
{
    protected $entity = 'Path\To\User';
}

Response Helpers

Add the WhiteFrame\Http\Controller\Helpers trait into your controller and you will have the following helpers :

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages