Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function __invoke(Request $request) |
||
13 | { |
||
14 | $uri = trim(str_replace('{locale}', '', $request->route()->uri()), " \t\n\r\0\x0B/") ?: '/'; |
||
15 | |||
16 | $page = app('rinvex.pages.page')->where('uri', $uri)->where('domain', $request->route()->domain() ?: null)->first(); |
||
17 | |||
18 | return view($page->view, compact('page')); |
||
19 | } |
||
20 | } |
||
21 |