質問編集履歴
2
一部修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -29,6 +29,8 @@
|
|
29
29
|
middleware('auth:users')->group(function(){
|
30
30
|
|
31
31
|
Route::get('index', [CorpController::class,'index'])->name('corps.index');
|
32
|
+
|
33
|
+
Route::get('/{corp}', [CorpController::class,'show'])->name('corps.show');
|
32
34
|
|
33
35
|
Route::get('create', [CorpController::class,'create'])->name('corps.create');
|
34
36
|
|
1
URL・ログ情報を追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -90,9 +90,23 @@
|
|
90
90
|
|
91
91
|
|
92
92
|
|
93
|
-
indexのルーティングは問題なく
|
93
|
+
indexのルーティングは問題なくviewが表示されて問題ないのですが
|
94
94
|
|
95
|
-
createのルーティングが
|
95
|
+
createのルーティングが404エラーになってしまいます。
|
96
|
+
|
97
|
+
(index)localhost:8000/corp/index →OK
|
98
|
+
|
99
|
+
(create)localhost:8000/corp/create →404エラー
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
```log
|
106
|
+
|
107
|
+
[previous exception] [object] (Symfony\Component\Routing\Exception\RouteNotFoundException(code: 0): Route [user.corps.create] not defined. at /Applications/MAMP/htdocs/laravel/servicename/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:427)
|
108
|
+
|
109
|
+
```
|
96
110
|
|
97
111
|
|
98
112
|
|