Skip to content

Commit dd779b8

Browse files
committed
🔧 modify Route Views description
Signed-off-by: otengkwame <[email protected]>
1 parent b58b68a commit dd779b8

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

config/view.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
| can be accessed directly through Route::view().
2222
|
2323
| You will have to implement the method below in a dedicated
24-
| Controller, preferably the "Web/App/App" Controller class
24+
| Controller, preferably the "Web/App/Pages" Controller class
25+
| Which you will have to create in the Web/App Module
2526
|
2627
| public function views($view = '')
2728
| {
@@ -31,13 +32,20 @@
3132
| A correct way to set the 'route_views_through' config is explained below
3233
|
3334
| 'route_views_through' => 'Module/Controller/MethodName/',
35+
| OR
36+
| 'route_views_through' => 'Controller/MethodName/',
37+
| the above is used in a non module controller
3438
|
35-
| e.g. 'route_views_through' => 'App/App/views/',
39+
| e.g. 'route_views_through' => 'App/Pages/views/',
40+
| OR
41+
| e.g. 'route_views_through' => 'Pages/views/',
42+
| in a non module controller
3643
|
37-
| Anytime you use Route::view('a-view-name')
44+
| Note: always end specified path with a trailing slash
45+
|
46+
| Anytime you use Route::page('a-view-name')
3847
| It will be routed using the name of the view as it's route
3948
|
40-
| Note: always end specified path with a trailing slash
4149
|
4250
*/
4351
'route_views_through' => '',

0 commit comments

Comments
 (0)