質問編集履歴
1
ルーティング情報の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,7 +6,13 @@
|
|
6
6
|
### 発生している問題・エラーメッセージ
|
7
7
|
global変数の宣言ではundefinedになるだけだったので、検索して調べたのですが構文エラーになるだけでした。
|
8
8
|
### 該当のソースコード
|
9
|
+
ルーティング
|
10
|
+
Route::get('/', [InputFormController::class, 'index']);
|
11
|
+
Route::post('/confirm', [InputFormController::class, 'confirm']);
|
12
|
+
Route::get('/thanks', [InputFormController::class, 'thanks']);
|
9
13
|
|
14
|
+
|
15
|
+
コントローラ
|
10
16
|
class InputFormController extends Controller
|
11
17
|
{
|
12
18
|
public function index()
|