Open kei1111 opened 4 years ago
<?php
// --ここから削除
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});
// --ここまで削除
// --ここから追加
Route::post('/test', 'LineBotController@test');
// --ここまで追加
https://developers.line.biz/ja/reference/messaging-api/#send-reply-message https://developers.line.biz/ja/reference/messaging-api/#webhook-event-objects
https://qiita.com/sh-ogawa/items/2238e579d7ee538025a0 https://qiita.com/nagapon/items/836790f94f7b50729432
https://butioblog.com/code/linebot1 https://nextat.co.jp/staff/archives/226