You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
- check for Route::currentRouteName() internally for navigation
- make params avail to controller through using cache
- make static (closure) routes cacheable through using dummy controller
rdme
Update README.md
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,11 @@ return [
39
39
'a' => 'is-active',
40
40
],
41
41
42
+
/*
43
+
* where to search for the template views relative to "resources\views" folder
44
+
*/
45
+
'templatePath' => 'pages',
46
+
42
47
/*
43
48
* the path where we will save the route list for multiLocal route resolving
44
49
*/
@@ -69,6 +74,19 @@ return [
69
74
});
70
75
```
71
76
77
+
### Good Practice
78
+
Ofcourse you are free to code your app the way you want, but just in-case here are the naming convention the package use.
79
+
80
+
- `title` > `title_case(some title)`
81
+
- `route_name` > `str_slug(title)`
82
+
- `action` > `SomeController\camelCase(title)`
83
+
84
+
## Notes
85
+
- for the pages with "action" you can get all the page params like **template, title, body, desc, breadCrump** inside your "action@method" by using `extract(cache('the_route_name'));`
86
+
87
+
<u>**or**</u>
88
+
- if you followed the naming convention above, you can instead use `extract(cache(kebab_case('TheCurrentMethodName')));`
89
+
72
90
# ToDo
73
91
74
92
* [ ] CRUD Views for (roles/perms/pages/menus). *any help is appreciated*
0 commit comments