File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
src/Flynsarmy/DbBladeCompiler Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,14 @@ public function __construct(DbBladeCompiler $bladeCompiler)
1313 {
1414 parent ::__construct ($ bladeCompiler );
1515 }
16+
17+ /**
18+ * @param string $compiled_path
19+ * @param array $data
20+ * @return string
21+ */
22+ public function getContent (string $ compiled_path , array $ data )
23+ {
24+ return $ this ->evaluatePath ($ compiled_path , $ data );
25+ }
1626}
Original file line number Diff line number Diff line change @@ -109,8 +109,10 @@ protected function getContents()
109109 {
110110 $ field = $ this ->config ->get ('db-blade-compiler.model_property ' );
111111 $ this ->path ->{$ field } = $ this ->content_field ;
112+ $ compiler = $ this ->engine ->getCompiler ();
113+ $ compiler ->compile ($ this ->path );
112114
113- return parent :: getContents ( );
115+ return $ this -> engine -> getContent ( $ compiler -> getCompiledPath ( $ this -> path ), $ this -> data );
114116 }
115117
116118 /**
You can’t perform that action at this time.
0 commit comments