This project is a starting point showing the usage of the full power of the WhiteFrame/Helloquent Model and the WhiteFrame/Http Controller. In a few lines you have a full example of a User management project :
- Action : listing, creating, editing and deleting eloquent models.
- Flash message : Simple action confirmation based on Laracast/Flash (not included in the project)
- RESTful URL : Built-in Resource Controller with REST Urls.
- API-Ready : Built-in Resource Controller handle multiple output format including
JSONANDJSONPresponses.
- Routes : Linking a
UserControllerinto theusersendpoint. - UserController : This controller extends
WhiteFrame\Http\Controller\Resource\Controllerfeatures for automatically handling all actions exceptupdatewitch require a special logic with the password input. You need to specify the$viewsfolder for loadingindex,create,edit,showviews. - User : The User Model with the Helloquent configuration
- UserPresenter : Allows you to customize atributes presentation with
$user->present()->emailinto your views. - UserRepository : Bring the repository pattern into your application.
- TODO UserTransformer : Allows you to transform your object into arrays for API displaying.