@@ -55,6 +55,13 @@ app('router')->delete('/', [IndexController::class, 'delete']);
5555app('router')->patch('/', [IndexController::class, 'patch']);
5656app('router')->options('/', [IndexController::class, 'options']);
5757
58+ app('router')->get('{some}', [IndexController::class, 'index']);
59+ app('router')->post('{some}', [IndexController::class, 'store']);
60+ app('router')->put('{some}', [IndexController::class, 'update']);
61+ app('router')->delete('{some}', [IndexController::class, 'delete']);
62+ app('router')->patch('{some}', [IndexController::class, 'patch']);
63+ app('router')->options('{some}', [IndexController::class, 'options']);
64+
5865app('router')->get('pages', [PagesController::class, 'index']);
5966app('router')->post('pages', [PagesController::class, 'store']);
6067app('router')->put('pages/{page}', [PagesController::class, 'update']);
@@ -65,12 +72,18 @@ app('router')->options('pages/{page}', [PagesController::class, 'options']);
6572
6673| Method | Url | Name | Helper |
6774| -----------| --------------| -----------------| --------------------------|
68- | GET, HEAD | ` / ` | ` index ` | ` route('index') ` |
69- | POST | ` / ` | ` store ` | ` route('store') ` |
70- | PUT | ` / ` | ` update ` | ` route('update') ` |
71- | DELETE | ` / ` | ` destroy ` | ` route('destroy') ` |
72- | PATCH | ` / ` | ` patch ` | ` route('patch') ` |
73- | OPTIONS | ` / ` | ` options ` | ` route('options') ` |
75+ | GET, HEAD | ` / ` | ` main.index ` | ` route('main.index') ` |
76+ | POST | ` / ` | ` main.store ` | ` route('main.store') ` |
77+ | PUT | ` / ` | ` main.update ` | ` route('main.update') ` |
78+ | DELETE | ` / ` | ` main.destroy ` | ` route('main.destroy') ` |
79+ | PATCH | ` / ` | ` main.patch ` | ` route('main.patch') ` |
80+ | OPTIONS | ` / ` | ` main.options ` | ` route('main.options') ` |
81+ | GET, HEAD | ` {some} ` | ` some.index ` | ` route('some.index') ` |
82+ | POST | ` {some} ` | ` some.store ` | ` route('some.store') ` |
83+ | PUT | ` {some} ` | ` some.update ` | ` route('some.update') ` |
84+ | DELETE | ` {some} ` | ` some.destroy ` | ` route('some.destroy') ` |
85+ | PATCH | ` {some} ` | ` some.patch ` | ` route('some.patch') ` |
86+ | OPTIONS | ` {some} ` | ` some.options ` | ` route('some.options') ` |
7487| GET, HEAD | ` /pages ` | ` pages.index ` | ` route('pages.index') ` |
7588| POST | ` /pages ` | ` pages.store ` | ` route('pages.store') ` |
7689| PUT | ` /pages/123 ` | ` pages.update ` | ` route('pages.update') ` |
0 commit comments