質問編集履歴

2

修正

2020/11/07 23:02

投稿

gomes_2222
gomes_2222

スコア90

test CHANGED
File without changes
test CHANGED
@@ -232,6 +232,32 @@
232
232
 
233
233
 
234
234
 
235
+ また、原因として、下記の指定をしてますが、helloに対応するルートがweb.phpで指定されていないのですが、それが原因とか考えられますか?
236
+
237
+
238
+
239
+ ```
240
+
241
+ return redirect('/hello');
242
+
243
+ ```
244
+
245
+
246
+
247
+ 下記を追加したが、状況が変わりません。同じエラー画面です。
248
+
249
+ ```php
250
+
251
+ Route::get('hello','App\Http\Controllers\HelloController@index');
252
+
253
+
254
+
255
+ Route::post('hello','App\Http\Controllers\HelloController@post');
256
+
257
+ ```
258
+
259
+
260
+
235
261
  ### 補足情報(FW/ツールのバージョンなど)
236
262
 
237
263
  書籍と異なり、MAMPを使用し、MYSQLを使用しています。

1

修正

2020/11/07 23:02

投稿

gomes_2222
gomes_2222

スコア90

test CHANGED
File without changes
test CHANGED
@@ -204,11 +204,11 @@
204
204
 
205
205
 
206
206
 
207
- Route::get('hello/edit','App\Http\Controllers\HelloController@edit');
207
+ Route::get('hello/add','App\Http\Controllers\HelloController@add');
208
-
209
-
210
-
208
+
209
+
210
+
211
- Route::post('hello/edit','App\Http\Controllers\HelloController@update');
211
+ Route::post('hello/add','App\Http\Controllers\HelloController@create');
212
212
 
213
213
 
214
214