PHP code example of kohenkatz / laravel-restful
1. Go to this page and download the library: Download kohenkatz/laravel-restful library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kohenkatz / laravel-restful example snippets
'providers' => array(
...
'Kohenkatz\Restful\RoutingServiceProvider',
),
use Kohenkatz\Restful\RestfulController;
class PostController extends RestfulController {
public function index() {
return array(
array(
'id' => 1,
'title' => 'Released a RESTful controller',
),
);
}
}