Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

Laravelのルーティングは上から順番に読まれることを利用した小技です。 前提条件 一部APIに大幅な変更があり、APIのバージョンをあげて対応したい 旧APIはversion1として残したい クライアントからのアクセスはAPI単位ではなく、一括でversion2に切り替えたい 変更がないAPIに関してはversion1同様の処理をするようにしたい しかし、version1のControllerの処理をversion2にコピーして使いたくない routes.phpの設定方法 Routeのpatternとgroupを組み合わせて定義します。 <?php // API version2の定義 Route::pattern('apiVersion2', 'v2'); Route::group(['namespace' => 'Api\V2', 'prefix' => '{apiVersion2
February 17, 2016How to Build an API-Only JWT-Powered Laravel App Dingo API; JWT-Auth, by tymondesigns; CORS on Laravel 5 by barryvdh; In this article, we will learn how to use it to quickly create a fully functional API for an imaginary book wishlist application. As an aside, we will also see how to build a client application with AngularJS that will use our APIs. Creating the Project This tutori
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く