質問編集履歴

1

ルーティングを該当箇所だけでなく、すべて表示するように変更いたしました。

2020/06/19 00:06

投稿

_takenoko
_takenoko

スコア18

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,21 @@
14
14
 
15
15
  ```php
16
16
 
17
+ Route::get('/', 'WordController@index')->name('words.index');
18
+
19
+ Route::resource('/words', 'WordController')->except(['index']);
20
+
21
+ Route::prefix('/words')->name('words.')->group(function () {
22
+
23
+ Route::get('/', 'WordController@search')->name('search');
24
+
17
- Route::get('/words/autocomplete', 'WordController@autocomplete')->name('words.autocomplete');
25
+ Route::get('/autocomplete', 'WordController@autocomplete')->name('autocomplete');
26
+
27
+ Route::get('/perfect', 'WordController@perfect')->name('perfect');
28
+
29
+ Route::get('/pertial', 'WordController@pertial')->name('pertial');
30
+
31
+ });
18
32
 
19
33
  ```
20
34