WP-API-Eloquent
A WordPress Plugin Template Base on WP_API and Eloquent.
Just add Eloquent into WordPress and WP_API for developping wordpress plugin
Use it
-
Be sure you have install and activate the plugin rest-json-api(wp-api)
-
Just put it to wp-content/plugins, and composer update
-
check:
get url 'wp-json/welcome' will return "Hello Wp_Api_Eloquent'';
get url 'wp-json/home/show' will return "This is HomeController show action";