PHPフレームワークのLaravelでRestfulインタフェースを作成 簡単な例で入門 Laravelで効率的にRest APIを開発することが出来ます。 作成するファイル 下の3つのファイルを作成しました。 app/routes.php app/models/Todo.php app/controllers/TodoController.php routes.php routes.phpでアプリケーションのルートをコントローラーにマッピングします。 Route::controller('/', 'TodoController'); TodoControllerにAPIをコーディングしていくことになります。 Model APIではデータベースを操作するので、Modelを作成します。 class Todo extends Eloquent { protected $table = 'tod