回答編集履歴
1
修正
test
CHANGED
@@ -16,6 +16,8 @@
|
|
16
16
|
|
17
17
|
Route::group(['prefix' => 'cms', 'middleware' => 'cms'], function(){
|
18
18
|
|
19
|
+
// 管理者専用ページ
|
20
|
+
|
19
21
|
Route::get('/', ['as' => 'cms', 'uses' =>'\GlebStarSimpleCms\Controllers\AdminController@index']);
|
20
22
|
|
21
23
|
Route::match(['get', 'post'], '/add', '\GlebStarSimpleCms\Controllers\AdminController@add');
|
@@ -28,12 +30,14 @@
|
|
28
30
|
|
29
31
|
|
30
32
|
|
33
|
+
}); // ここまで
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
// これはおそらく「見る人」がアクセスするページなのでauthの外に置く
|
38
|
+
|
31
39
|
// this route should be the last.
|
32
40
|
|
33
41
|
Route::get('{path}', '\GlebStarSimpleCms\Controllers\CmsController@index')->where('path', '([A-z\d-/_.]+)?');
|
34
42
|
|
35
|
-
|
36
|
-
|
37
|
-
}); // ここまで
|
38
|
-
|
39
43
|
```
|