@@ -58,6 +58,7 @@ protected function pageComp($page)
5858 $ title = $ page ->title ;
5959 $ body = $ page ->body ;
6060 $ desc = $ page ->desc ;
61+ $ meta = $ page ->meta ;
6162 $ template = $ page ->template ;
6263 $ breadCrumb = $ page ->getAncestors ();
6364
@@ -72,23 +73,23 @@ protected function pageComp($page)
7273 $ permissions = 'perm: ' . implode (', ' , $ page ->permissions ->pluck ('name ' )->toArray ());
7374
7475 // make route
75- $ this ->routeGen ($ routeName , $ url , $ prefix , $ action , $ roles , $ permissions , $ template , $ title , $ body , $ desc , $ breadCrumb );
76+ $ this ->routeGen ($ routeName , $ url , $ prefix , $ action , $ roles , $ permissions , $ template , $ title , $ body , $ desc , $ meta , $ breadCrumb );
7677
7778 // create route list
7879 if (!$ this ->listFileFound ) {
7980 $ this ->createRoutesList ($ action , $ page , $ routeName );
8081 }
8182 }
8283
83- protected function routeGen ($ routeName , $ url , $ prefix , $ action , $ roles , $ permissions , $ template , $ title , $ body , $ desc , $ breadCrumb )
84+ protected function routeGen ($ routeName , $ url , $ prefix , $ action , $ roles , $ permissions , $ template , $ title , $ body , $ desc , $ meta , $ breadCrumb )
8485 {
8586 if ($ this ->escapeEmptyRoute ($ url )) {
8687 return ;
8788 }
8889
8990 // cache the page so we can pass the page params to the controller@method
90- $ this ->cache ->tags ('sm ' )->rememberForever ($ this ->getCrntLocale () . "- $ routeName " , function () use ($ template , $ title , $ body , $ desc , $ breadCrumb ) {
91- return compact ('template ' , 'title ' , 'body ' , 'desc ' , 'breadCrumb ' );
91+ $ this ->cache ->tags ('sm ' )->rememberForever ($ this ->getCrntLocale () . "- $ routeName " , function () use ($ template , $ title , $ body , $ desc , $ meta , $ breadCrumb ) {
92+ return compact ('template ' , 'title ' , 'body ' , 'desc ' , 'meta ' , ' breadCrumb ' );
9293 });
9394
9495 $ route = $ this ->getRouteUrl ($ url , $ prefix );
0 commit comments